/* =========================================================
   legal.css — shared styles for Privacy Policy & Terms of
   Service pages. Reuses the same design tokens as the main
   site (Space Grotesk, palette vars) for visual consistency.
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
    --font-family: "Space Grotesk", sans-serif;
    --pallete-1: #f9f9f9;
    --pallete-2: #9ca3af;
    --pallete-3: #000000;
    --pallete-4: #ffffff;
    --pallete-5: #737373;
    --pallete-6: #b1b1b1;
    --pallete-7: #f7f7f7;
    --border-color: #e6e6e6;
    --ink-900: #1a1a1a;
    --ink-600: #6b7280;
    --purple: #8b5cf6;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-family);
    color: var(--ink-900);
    background: #ffffff;
}

a {
    color: inherit;
}

.page-width {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 80px;
}

/* ---------------------------------------------------------
   Navbar (reused pattern from main site)
--------------------------------------------------------- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 80px;
    border-bottom: 1px solid var(--border-color);
}

.navbar .logo img {
    width: 5.75rem;
    height: auto;
}

.navbar ol {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.navbar ol li {
    font-size: 14px;
    font-weight: 400;
}

.navbar ol li a {
    text-decoration: none;
    color: var(--ink-900);
}

.navbar button {
    border: none;
    border-radius: 6px;
    background: var(--pallete-3);
    color: var(--pallete-4);
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 14px;
    padding: 14px 22px;
    cursor: pointer;
}

/* ---------------------------------------------------------
   Hero
--------------------------------------------------------- */
.legal-hero {
    background: var(--pallete-7);
    padding: 72px 0 56px;
    border-bottom: 1px solid var(--border-color);
}

.legal-hero-inner {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.legal-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--purple);
    margin-bottom: 14px;
}

.legal-hero h1 {
    font-size: 46px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 18px;
    background: linear-gradient(180deg, #1b1b1b 0%, #6b6b6b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.legal-hero p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-600);
    margin: 0 0 20px;
}

.legal-hero p strong {
    color: var(--ink-900);
}

.legal-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--pallete-6);
}

.legal-meta .dot {
    color: var(--pallete-6);
}

/* ---------------------------------------------------------
   Layout: sticky table of contents + content column
--------------------------------------------------------- */
.legal-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 64px;
    padding-top: 56px;
    padding-bottom: 80px;
    align-items: start;
}

.legal-toc {
    margin-top: 2rem;
    position: sticky;
    top: 10px;
    margin-bottom: 2rem;
}

.legal-toc-sticky {
    position: sticky;
    top: 32px;
    background: var(--pallete-7);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    width: 15rem;
}

.legal-toc-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--pallete-6);
    margin-bottom: 14px;
}

.legal-toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.legal-toc ol li a {
    display: block;
    text-decoration: none;
    font-size: 13.5px;
    color: var(--ink-600);
    padding: 8px 10px;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
}

.legal-toc ol li a:hover {
    background: #ffffff;
    color: var(--ink-900);
}

/* ---------------------------------------------------------
   Content
--------------------------------------------------------- */

.legal-content section:first-child {
    margin-top: 2rem;
}

.legal-content section {
    padding-bottom: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    scroll-margin-top: 32px;
}

.legal-content section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.legal-content h2 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 16px;
    color: var(--ink-900);
}

.legal-content p {
    font-size: 15px;
    line-height: 1.75;
    color: var(--ink-600);
    margin: 0 0 14px;
}

.legal-content p:last-child {
    margin-bottom: 0;
}

.legal-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legal-list li {
    position: relative;
    padding-left: 22px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink-600);
}

.legal-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--purple);
}

.legal-list li strong {
    color: var(--ink-900);
}

.legal-contact-card {
    background: var(--pallete-7);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px 24px;
    font-size: 14.5px;
    line-height: 1.9;
    color: var(--ink-900);
}

.legal-contact-card a {
    color: var(--purple);
    text-decoration: none;
    font-weight: 600;
}

.legal-footer-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.legal-footer-nav a {
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: var(--ink-900);
    padding: 12px 18px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: background 0.15s ease;
}

.legal-footer-nav a:hover {
    background: var(--pallete-7);
}

/* ---------------------------------------------------------
   Footer (matches main site footer)
--------------------------------------------------------- */
.footer {
    background: var(--pallete-3);
    padding: 36px 80px;
}

.footer .footer-section-1 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.footer .footer-section-1 .app-logo-with-text {
    display: flex;
    align-items: center;
}

.footer .footer-section-1 .app-logo-with-text img {
    width: 5.75rem;
    height: auto;
    filter: invert(1);
}

.footer .footer-section-1 .app-logo-with-text .app-label {
    color: var(--pallete-4);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.9px;
    margin-left: 12px;
}

.footer .footer-section-1 .links {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer .footer-section-1 .links .link a {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--pallete-1);
}

.footer .footer-section-2 {
    font-size: 12px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-align: center;
    color: var(--pallete-1);
    margin-top: 24px;
}

.color-1 {
    color: var(--pallete-1);
}

.color-2 {
    color: var(--pallete-2);
}

/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */
@media (max-width: 1024px) {
    .page-width {
        padding: 0 40px;
    }

    .navbar {
        padding: 18px 40px;
    }

    .footer {
        padding: 32px 40px;
    }

    .legal-layout {
        grid-template-columns: 220px 1fr;
        gap: 40px;
    }
}

@media (max-width: 860px) {
    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-toc {
        display: none;
    }

    .legal-hero h1 {
        font-size: 34px;
    }
}

@media (max-width: 600px) {
    .page-width {
        padding: 0 20px;
    }

    .navbar {
        padding: 16px 20px;
    }

    .navbar ol {
        display: none;
    }

    .footer {
        padding: 28px 20px;
    }

    .footer .footer-section-1 {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .legal-hero {
        padding: 48px 0 36px;
    }

    .legal-hero h1 {
        font-size: 28px;
    }

    .legal-layout {
        padding-top: 36px;
        padding-bottom: 56px;
    }

    .legal-footer-nav {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        text-align: center;
    }
}