/* Aidrobe legal pages — shared stylesheet for privacy + terms.
   Long-form reading layout on the same design tokens as the homepage. */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --pink-1: #ffd6e7;
    --pink-2: #ffd0d8;
    --peach: #ffe2c8;
    --cream-1: #fff1d4;
    --cream-2: #fdf5e2;
    --ink: #0e0a08;
    --ink-soft: #2a1f1d;
    --body-text: #3a2a25;
    --muted: #6a4f4a;
    --rose: #ff3aa3;
    --rose-deep: #c81f7f;
    --rose-soft: #ffc1de;
    --paper: #ffffff;
    --line: rgba(20, 10, 14, 0.1);
    --radius-pill: 999px;

    /* Map legacy variable so inline style="color: var(--accent-color)"
       on existing h2/h3 elements adopts the new rose without touching them. */
    --accent-color: var(--rose-deep);

    /* Legacy text vars kept as no-ops in case any inline style references them */
    --text-primary: var(--ink);
    --text-secondary: var(--body-text);
    --surface-primary: transparent;
    --surface-secondary: rgba(255, 255, 255, 0.62);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background:
        radial-gradient(120% 60% at 95% 0%, var(--pink-1) 0%, rgba(255, 214, 231, 0) 55%),
        radial-gradient(100% 70% at 0% 100%, var(--cream-1) 0%, rgba(255, 241, 212, 0) 60%),
        linear-gradient(180deg, var(--pink-2) 0%, var(--peach) 38%, var(--cream-1) 72%, var(--cream-2) 100%);
    background-attachment: fixed;
    color: var(--ink);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 400;
    line-height: 1.65;
    min-height: 100vh;
}

::selection {
    background: var(--rose);
    color: white;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3,
h4 {
    font-weight: 900;
    letter-spacing: -0.015em;
    line-height: 1.15;
    color: var(--ink);
}

.script {
    font-family: "Caveat", "Snell Roundhand", "Brush Script MT", cursive;
    color: var(--rose);
    font-weight: 700;
    line-height: 0.95;
}

.eyebrow {
    color: var(--rose);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px clamp(18px, 5vw, 56px);
    background: rgba(255, 232, 215, 0.55);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid rgba(20, 10, 14, 0.06);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 1.08rem;
    letter-spacing: -0.01em;
}

.brand img {
    width: 32px;
    height: 32px;
    border-radius: 9px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--ink-soft);
}

.nav a:not(.pill):hover {
    color: var(--rose-deep);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    white-space: nowrap;
}

.pill-dark {
    background: var(--ink);
    color: #fff;
    box-shadow: 0 8px 22px rgba(20, 10, 14, 0.18);
}

.pill-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(20, 10, 14, 0.25);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink-soft);
    font-weight: 600;
    font-size: 0.95rem;
}

.back-link:hover {
    color: var(--rose-deep);
}

/* Hero */
main {
    padding: 0 clamp(20px, 5vw, 56px);
}

.legal-hero {
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(48px, 8vw, 96px) 0 clamp(20px, 3vw, 36px);
}

.legal-hero h1 {
    font-size: clamp(2.2rem, 5.4vw, 3.8rem);
    margin-bottom: 12px;
}

.legal-hero .updated {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 600;
}

/* Body content */
.legal-content {
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(8px, 2vw, 16px) 0 clamp(56px, 7vw, 80px);
    color: var(--body-text);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Override aggressive inline-style elements but keep their spacing roles */
.legal-content h2,
.content h2 {
    color: var(--rose-deep) !important;
    font-size: clamp(1.4rem, 2.5vw, 1.75rem);
    margin: clamp(36px, 4vw, 56px) 0 14px;
    line-height: 1.25;
}

.legal-content h3,
.content h3 {
    color: var(--ink);
    font-size: 1.18rem;
    font-weight: 800;
    margin: 24px 0 8px;
}

.legal-content p,
.content p {
    margin: 0 0 14px;
    color: var(--body-text);
}

.legal-content p strong,
.content p strong,
.legal-content li strong,
.content li strong {
    color: var(--ink);
    font-weight: 700;
}

.legal-content ul,
.legal-content ol,
.content ul,
.content ol {
    margin: 0 0 18px;
    padding-left: 1.4em;
}

.legal-content li,
.content li {
    margin: 8px 0;
    color: var(--body-text);
}

.legal-content a,
.content a {
    color: var(--rose-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-content a:hover,
.content a:hover {
    color: var(--ink);
}

/* Footer */
footer {
    border-top: 1px solid rgba(20, 10, 14, 0.08);
    padding: 32px clamp(20px, 5vw, 56px);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
    font-size: 0.9rem;
}

footer a {
    color: var(--ink-soft);
    font-weight: 600;
}

footer a:hover {
    color: var(--rose-deep);
}

.foot-links {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

/* RTL tweaks */
html[dir="rtl"] .back-link {
    flex-direction: row-reverse;
}

/* Responsive */
@media (max-width: 760px) {
    .nav .hide-mobile {
        display: none;
    }
}

@media (max-width: 520px) {
    .site-header {
        padding: 12px 18px;
    }

    .legal-hero {
        padding: 32px 0 16px;
    }

    .legal-content {
        font-size: 1rem;
    }

    footer {
        flex-direction: column;
        align-items: flex-start;
    }
}
