/* Legal pages (/en/privacy-policy/, /es/politica-de-privacidad/, ... 4 documents x 3 languages). Self-contained: no Tailwind. */
:root {
    --bg: #050511;
    --surface: rgba(255, 255, 255, .03);
    --line: rgba(255, 255, 255, .1);
    --ink: #ffffff;
    --text: #c9cbd6;
    --muted: #8b8fa3;
    --link: #60a5fa;
    --accent: #bd00ff;
    --pending-bg: rgba(250, 204, 21, .15);
    --pending-ink: #fde047;
    color-scheme: dark;
}

html[data-theme="light"] {
    --bg: #f5f6fb;
    --surface: #ffffff;
    --line: rgba(14, 15, 42, .1);
    --ink: #0e0f2a;
    --text: #33374f;
    --muted: #676c86;
    --link: #1d4ed8;
    --accent: #7b00e0;
    --pending-bg: #fef3c7;
    --pending-ink: #92400e;
    color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 300 16px/1.75 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Text links: white (dark ink in light mode), blue on hover */
a { color: var(--ink); text-underline-offset: 3px; transition: color .2s; }
a:hover, a:focus-visible { color: var(--link); }

/* ---------- header ---------- */
.lg-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.lg-header__in {
    max-width: 980px;
    margin: 0 auto;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.lg-logo img { height: 40px; width: auto; display: block; }
.lg-logo .logo-light { display: none; }
html[data-theme="light"] .lg-logo .logo-dark { display: none; }
html[data-theme="light"] .lg-logo .logo-light { display: block; }

.lg-langs { display: flex; gap: 14px; font-size: 13px; font-weight: 600; font-family: 'Montserrat', sans-serif; }
.lg-langs a { color: var(--muted); text-decoration: none; }
.lg-langs a:hover, .lg-langs a[aria-current] { color: var(--link); }

/* ---------- content ---------- */
main { max-width: 980px; margin: 0 auto; padding: 48px 16px 80px; }

h1, h2, h3 { font-family: 'Montserrat', sans-serif; color: var(--ink); line-height: 1.25; }
h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 900; margin: 0 0 8px; letter-spacing: -.01em; }
h2 { font-size: 20px; font-weight: 700; margin: 40px 0 8px; }
h3 { font-size: 17px; font-weight: 700; margin: 28px 0 8px; }

/* Tabs between the 4 legal documents */
.lg-docs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.lg-docs a {
    padding: 6px 14px;
    border-radius: 9999px;
    border: 1px solid var(--line);
    color: var(--muted);
    text-decoration: none;
    font: 600 13px 'Montserrat', sans-serif;
}
.lg-docs a:hover { color: var(--link); }
.lg-docs a[aria-current] { color: #fff; border-color: transparent; background: linear-gradient(to right, #6b21a8, #1e40af); }

/* Top bar of the legal pages: big "Back" button (round gradient arrow) + the 4 documents as a segmented control */
.lg-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px;
    margin: 0 0 40px;
    border: 1px solid var(--line);
    border-radius: 9999px;
    background: var(--surface);
    box-shadow: 0 0 40px rgba(123, 0, 224, .08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.lg-back {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex: none;
    padding: 4px 22px 4px 10px; /* room for the arrow circle to slide left on hover */
    border-radius: 9999px;
    color: var(--ink);
    text-decoration: none;
    font: 700 15px 'Montserrat', sans-serif;
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: color .2s, background-color .2s;
}
.lg-back__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #7b00e0, #1e40af);
    box-shadow: 0 0 18px rgba(189, 0, 255, .35);
    transition: transform .25s ease, box-shadow .25s ease;
}
.lg-back { border: 1px solid transparent; transition: color .2s, background-color .2s, border-color .2s, box-shadow .2s; }
.lg-back:hover, .lg-back:focus-visible {
    color: var(--link);
    background: rgba(255, 255, 255, .04);
    border-color: #8b5cf6;
    box-shadow: 0 0 18px rgba(139, 92, 246, .35);
}
.lg-back:hover .lg-back__icon, .lg-back:focus-visible .lg-back__icon {
    transform: translateX(-3px);
    box-shadow: 0 0 28px rgba(189, 0, 255, .6);
}
.lg-nav__sep { flex: none; width: 1px; height: 30px; background: var(--line); }
.lg-nav .lg-docs { flex: 1; justify-content: flex-end; gap: 4px; margin: 0; }
.lg-nav .lg-docs a {
    padding: 11px 18px;
    border-color: transparent;
    transition: color .2s, background-color .2s, border-color .2s, box-shadow .2s;
}
/* Hover: intense blue border (same as the home page). The active one keeps its gradient and also gets the border. */
.lg-nav .lg-docs a:not([aria-current]):hover, .lg-nav .lg-docs a:not([aria-current]):focus-visible {
    color: var(--link);
    background: rgba(255, 255, 255, .05);
    border-color: #3b82f6;
    box-shadow: 0 0 15px rgba(36, 107, 253, .3);
}
.lg-nav .lg-docs a[aria-current] { box-shadow: 0 0 16px rgba(123, 0, 224, .35); }
.lg-nav .lg-docs a[aria-current]:hover, .lg-nav .lg-docs a[aria-current]:focus-visible {
    color: #fff;
    border-color: #60a5fa;
    box-shadow: 0 0 18px rgba(59, 130, 246, .5);
}
html[data-theme="light"] .lg-nav { box-shadow: 0 6px 30px rgba(14, 15, 42, .08); }
html[data-theme="light"] .lg-back:hover, html[data-theme="light"] .lg-back:focus-visible,
html[data-theme="light"] .lg-nav .lg-docs a:not([aria-current]):hover,
html[data-theme="light"] .lg-nav .lg-docs a:not([aria-current]):focus-visible { background: rgba(14, 15, 42, .04); }
html[data-theme="light"] .lg-nav .lg-docs a[aria-current]:hover { border-color: #1d4ed8; }
@media (max-width: 760px) {
    .lg-nav { flex-direction: column; align-items: stretch; gap: 6px; border-radius: 28px; }
    .lg-nav__sep { width: auto; height: 1px; margin: 0 8px; }
    .lg-nav .lg-docs { justify-content: center; }
    .lg-nav .lg-docs a { flex: 1 1 40%; text-align: center; padding: 10px 12px; }
}

.lg-meta { color: var(--muted); font-size: 14px; margin: 0 0 32px; }
.lg-intro { font-size: 17px; }

p, li { max-width: 78ch; }
ul, ol { padding-left: 1.3em; }
li { margin: 4px 0; }
strong { color: var(--ink); font-weight: 600; }

.lg-toc {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 20px 24px;
    margin: 32px 0;
}
.lg-toc p { margin: 0 0 8px; font-weight: 600; color: var(--ink); font-family: 'Montserrat', sans-serif; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.lg-toc ol { margin: 0; columns: 2 260px; column-gap: 32px; }

.lg-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 16px 0;
}
.lg-box p { margin: 4px 0; }

.lg-table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 14px; line-height: 1.55; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
th { color: var(--ink); font-weight: 600; background: var(--surface); }
tr:last-child td { border-bottom: 0; }
code { font-size: 13px; color: var(--ink); }

/* Data that the company must still fill in before publishing */
.legal-pending {
    background: var(--pending-bg);
    color: var(--pending-ink);
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.lg-btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 9999px;
    border: 1px solid var(--line);
    background: linear-gradient(to right, #6b21a8, #1e40af);
    color: #fff;
    font: 700 13px 'Montserrat', sans-serif;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
}

/* ---------- footer ---------- */
.lg-footer { border-top: 1px solid var(--line); }
.lg-footer__in {
    max-width: 980px;
    margin: 0 auto;
    padding: 24px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    justify-content: space-between;
    font-size: 13px;
    color: var(--muted);
}
.lg-footer a { color: var(--muted); }
.lg-footer a:hover { color: var(--link); }
.lg-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
