@font-face {
    font-family: 'Inter';
    src: url('Inter-Regular.woff2') format('woff2'),
        url('Inter-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('Inter-Italic.woff2') format('woff2'),
        url('Inter-Italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}


* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    padding: 0;
    margin: 0;
    background-color: #f4f4f4;
    color: #1a1a1a;
    line-height: 1.6;
}

html,
body {
    transition: background-color 0.28s ease, color 0.28s ease;
}

#main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#content {
    width: 100%;
    max-width: 750px;
    padding: clamp(40px, 8vw, 80px) clamp(20px, 5vw, 40px);
}

#privacy-policy,
#terms-of-service {
    text-align: left;
}

#privacy-policy h1,
#terms-of-service h1 {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 700;
    color: #0a0a0a;
    margin: 0 0 clamp(24px, 4vw, 40px) 0;
    line-height: 1.2;
}

#privacy-policy h2,
#terms-of-service h2 {
    font-size: clamp(16px, 2.5vw, 20px);
    font-weight: 600;
    color: #0a0a0a;
    margin: clamp(32px, 5vw, 48px) 0 clamp(16px, 2vw, 24px) 0;
    line-height: 1.3;
}

#privacy-policy p,
#terms-of-service p {
    font-size: clamp(14px, 1.5vw, 16px);
    color: #475569;
    margin: 0 0 clamp(16px, 2vw, 24px) 0;
    line-height: 1.7;
}

.legal-last-updated {
    opacity: 0.85;
    font-size: 0.95rem;
}

#privacy-policy strong,
#terms-of-service strong {
    color: #0a0a0a;
    font-weight: 600;
}

html.dark-mode body {
    background-color: #070d19;
    color: #e5e7eb;
}

html.dark-mode #privacy-policy h1,
html.dark-mode #terms-of-service h1,
html.dark-mode #privacy-policy h2,
html.dark-mode #terms-of-service h2,
html.dark-mode #privacy-policy strong,
html.dark-mode #terms-of-service strong {
    color: #f8fafc;
}

html.dark-mode #privacy-policy p,
html.dark-mode #terms-of-service p {
    color: #cbd5e1;
}

html.dark-mode .legal-last-updated {
    color: #94a3b8;
    opacity: 1;
}

/* Responsive: Mobile */
@media (max-width: 640px) {
    #content {
        padding: 32px 20px;
    }

    #privacy-policy h1,
    #terms-of-service h1 {
        margin-bottom: 20px;
    }

    #privacy-policy h2,
    #terms-of-service h2 {
        margin: 28px 0 14px 0;
    }

    #privacy-policy p,
    #terms-of-service p {
        margin-bottom: 16px;
    }
}
