/*
 * ================================================================
 *  CodeTech SMS Platform
 * ---------------------------------------------------------------
 *  Author      : CodeTech
 *  Telegram    : @codetech9
 *  E-mail      : codetech888@gmail.com
 * ================================================================
 */
:root {
    --navy-950: #060d1a;
    --navy-900: #0b1628;
    --navy-800: #112040;
    --navy-700: #1a3260;
    --blue-600: #2563eb;
    --blue-500: #2563c8;
    --blue-400: #3b7de8;
    --blue-100: #c8dcfa;
    --blue-50:  #e8f0fd;
    --cyan-500: #06b6d4;
    --slate-50:  #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --white: #ffffff;
    --font: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    --radius-md: 10px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--slate-50);
    color: var(--slate-700);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}


.legal-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--slate-200);
}
.legal-header-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.legal-logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none;
}
.legal-logo-icon {
    width: 34px; height: 34px;
    background: linear-gradient(135deg, var(--blue-500), var(--cyan-500));
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
}
.legal-logo-icon i { font-size: 16px; color: var(--white); }
.legal-logo-text {
    font-size: 17px; font-weight: 600;
    color: var(--slate-800); letter-spacing: -0.3px;
}
.legal-header-actions { display: flex; gap: 8px; }
.legal-btn-outline {
    padding: 7px 18px;
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    font-size: 13px; font-weight: 500;
    color: var(--slate-600);
    text-decoration: none;
    transition: all 0.2s;
}
.legal-btn-outline:hover { border-color: var(--slate-300); background: var(--white); }
.legal-btn-primary {
    padding: 7px 18px;
    background: var(--navy-900);
    border: 1px solid var(--navy-900);
    border-radius: 8px;
    font-size: 13px; font-weight: 500;
    color: var(--white);
    text-decoration: none;
    transition: all 0.2s;
}
.legal-btn-primary:hover { background: var(--navy-700); }


.legal-main {
    flex: 1;
    padding: 0 24px 60px;
}
.legal-container {
    max-width: 760px;
    margin: 0 auto;
}


.legal-hero {
    text-align: center;
    padding: 48px 0 36px;
}
.legal-hero-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 20px rgba(6,13,26,0.15);
}
.legal-hero-icon i { font-size: 24px; color: var(--white); }
.legal-hero h1 {
    font-size: 28px;
    font-weight: 600;
    color: var(--slate-800);
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}
.legal-meta {
    font-size: 13px;
    color: var(--slate-400);
}


.legal-content {
    background: var(--white);
    border-radius: 14px;
    padding: 44px 48px;
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
}

.legal-content section {
    margin-bottom: 32px;
}
.legal-content section:last-child { margin-bottom: 0; }

.legal-content h2 {
    font-size: 17px;
    font-weight: 600;
    color: var(--slate-800);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--slate-100);
}
.legal-content h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--slate-700);
    margin: 16px 0 8px;
}
.legal-content p {
    font-size: 14px;
    color: var(--slate-600);
    margin-bottom: 10px;
    line-height: 1.8;
}
.legal-content ul {
    padding-left: 22px;
    margin-bottom: 12px;
}
.legal-content li {
    font-size: 14px;
    color: var(--slate-600);
    margin-bottom: 6px;
    line-height: 1.7;
}
.legal-content li strong {
    color: var(--slate-700);
}


.legal-footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid var(--slate-200);
}
.legal-footer span {
    font-size: 12px;
    color: var(--slate-400);
}


@media (max-width: 640px) {
    .legal-content { padding: 28px 22px; border-radius: 10px; }
    .legal-hero h1 { font-size: 22px; }
    .legal-hero { padding: 32px 0 24px; }
    .legal-header-inner { padding: 12px 16px; }
}
