/* ===== TERMS OF SERVICE PAGE STYLES ===== */
/* YC-style black design system for Terms of Service */

:root {
    /* Core palette */
    --black: #000000;
    --black-rich: #050505;
    --black-card: #0a0a0a;
    --black-elevated: #111111;
    --black-border: #1a1a1a;

    /* Text */
    --white: #ffffff;
    --white-secondary: #a1a1a6;
    --white-tertiary: #6e6e73;
    --white-faint: #48484a;

    /* Accent */
    --accent: #2997ff;
    --accent-soft: rgba(41, 151, 255, 0.12);
    --accent-glow: rgba(41, 151, 255, 0.25);

    /* Radius */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

.legal-page {
    background: var(--black);
    padding: 120px 0 80px;
    min-height: 100vh;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.legal-header {
    text-align: center;
    margin-bottom: 64px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--black-border);
}

.legal-header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -0.035em;
    color: var(--white);
    margin-bottom: 16px;
}

.last-updated {
    color: var(--white-tertiary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    color: var(--white-secondary);
    line-height: 1.8;
}

.legal-content h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-bottom: 12px;
}

.legal-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-top: 48px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--black-border);
}

.legal-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--white);
    margin-top: 28px;
    margin-bottom: 16px;
}

.legal-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-top: 16px;
    margin-bottom: 12px;
}

.legal-content p {
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.7;
}

.legal-content ul,
.legal-content ol {
    margin-bottom: 24px;
    padding-left: 0;
}

.legal-content li {
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
    font-size: 15px;
}

.legal-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

.legal-content ol {
    counter-reset: item;
    list-style-type: none;
}

.legal-content ol li::before {
    content: counter(item) '.';
    counter-increment: item;
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

.legal-content strong {
    color: var(--white);
    font-weight: 600;
}

.legal-content a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.legal-content a:hover {
    color: #5ac8fa;
    text-decoration: underline;
}

/* Pricing/Service Cards */
.service-tier {
    background: var(--black-card);
    border: 1px solid var(--black-border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin: 20px 0;
    transition: all 0.3s ease;
}

.service-tier:hover {
    border-color: var(--accent);
    background: var(--black-elevated);
}

.service-tier h4 {
    color: var(--accent);
    font-size: 16px;
    margin-top: 0;
}

.service-tier strong {
    color: var(--white);
}

.contact-box {
    background: linear-gradient(135deg, rgba(41, 151, 255, 0.06) 0%, rgba(41, 151, 255, 0.03) 100%);
    border: 1px solid rgba(41, 151, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin: 48px 0;
    text-align: center;
}

.contact-box strong {
    display: block;
    font-size: 18px;
    color: var(--white);
    margin-bottom: 12px;
}

.contact-box p {
    font-size: 15px;
    color: var(--white-secondary);
    margin-bottom: 8px;
}

.contact-box a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}

.contact-box a:hover {
    text-decoration: underline;
}

.legal-footer {
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid var(--black-border);
    text-align: center;
}

.legal-footer p {
    font-size: 14px;
    color: var(--white-tertiary);
    margin-bottom: 24px;
}

.legal-footer .btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--accent);
    color: white;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid var(--accent);
}

.legal-footer .btn:hover {
    background: transparent;
    color: var(--accent);
}

/* Table of Contents */
.toc {
    background: var(--black-card);
    border: 1px solid var(--black-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 48px;
}

.toc h3 {
    margin-top: 0;
}

.toc ul {
    margin: 0;
    list-style: none;
    padding-left: 0;
}

.toc li {
    padding-left: 20px;
    margin-bottom: 8px;
    position: relative;
}

.toc li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.toc a {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
}

.toc a:hover {
    text-decoration: underline;
}


/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .legal-header h1 {
        font-size: 36px;
    }

    .legal-content h1 {
        font-size: 32px;
    }

    .legal-content h2 {
        font-size: 24px;
        margin-top: 36px;
    }

    .legal-content h3 {
        font-size: 16px;
    }

    .contact-box {
        padding: 24px;
        margin: 36px 0;
    }

    .legal-footer {
        margin-top: 48px;
        padding-top: 24px;
    }
}

@media (max-width: 480px) {
    .legal-page {
        padding: 100px 0 60px;
    }

    .legal-header {
        margin-bottom: 40px;
    }

    .legal-header h1 {
        font-size: 28px;
    }

    .legal-content h1 {
        font-size: 24px;
    }

    .legal-content h2 {
        font-size: 20px;
    }

    .legal-content h3 {
        font-size: 15px;
    }

    .legal-content p,
    .legal-content li {
        font-size: 14px;
    }

    .service-tier {
        padding: 20px;
    }

    .contact-box {
        padding: 20px;
    }

    .toc {
        padding: 20px;
    }
}
