/* Styles for the /privacy and /tos pages (loaded after style.css) */

:root {
    --bg: #000207;
    --surface: #0B0D0F;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --purple: #7D3DFF;
    --purple-light: #9763FE;
    --lavender: #997CFF;
    --lilac: #C4B1FF;
    --yellow: #EDD33F;
    --copy: rgba(255, 255, 255, 0.72);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #000207;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: rgba(125, 61, 255, 0.45);
    color: #fff;
}

.font-serif-display {
    font-family: 'Noto Serif', serif;
    font-weight: 500;
    line-height: 1.35;
}

.eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--lavender);
}

.nav-link {
    transition: color 0.2s;
}

.nav-link:hover {
    color: #fff;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
    border-radius: 5px;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s, background-color 0.2s, border-color 0.2s;
}

.btn .arrow,
.card-hover .arrow {
    transition: transform 0.2s;
}

.btn:hover .arrow,
.card-hover:hover .arrow {
    transform: translateX(3px);
}

.btn-light {
    padding: 0.5rem 1rem;
    color: #7454E3;
    background: #FFFFFF;
    background: linear-gradient(0deg, rgba(255, 255, 255, 1) 54%, rgba(180, 150, 235, 0.74) 100%);
}

.btn-light:hover {
    filter: brightness(1.05);
}

.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
    border: 1px solid var(--line);
    border-radius: 16px;
}

.card-hover {
    transition: border-color 0.25s, transform 0.25s;
}

.card-hover:hover {
    border-color: rgba(151, 99, 254, 0.4);
    transform: translateY(-2px);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line-strong);
    white-space: nowrap;
}

.legal-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    margin-bottom: 3.5rem;
}

.legal-hero-bg {
    position: absolute;
    inset: 0;
    background: url('/images/bg.png') center 20% / cover no-repeat;
    opacity: 0.55;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.5) 55%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.5) 55%, transparent 100%);
}

.legal-title {
    font-family: 'Noto Serif', serif;
    font-weight: 500;
    color: #fff;
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s;
}

.back-link:hover {
    color: #fff;
}

.doc-switch {
    display: inline-flex;
    padding: 4px;
    gap: 4px;
    border-radius: 10px;
    background: rgba(0, 2, 7, 0.55);
    border: 1px solid var(--line-strong);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    max-width: 100%;
}

.doc-switch a {
    padding: 0.5rem 1rem;
    border-radius: 7px;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    transition: color 0.2s, background-color 0.2s;
}

.doc-switch a:hover {
    color: #fff;
}

.doc-switch a.is-active {
    color: #fff;
    background: linear-gradient(0deg, #7D3DFF 32%, #9763FE 87%);
}

.toc {
    position: sticky;
    top: 2rem;
    display: flex;
    flex-direction: column;
}

.toc-heading {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1rem;
}

.toc-link {
    display: flex;
    gap: 0.75rem;
    padding: 0.4rem 0 0.4rem 0.9rem;
    font-size: 0.875rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.5);
    border-left: 1px solid var(--line-strong);
    transition: color 0.2s, border-color 0.2s;
}

.toc-link:hover {
    color: #fff;
}

.toc-link.is-active {
    color: #fff;
    border-left-color: var(--lavender);
    box-shadow: inset 2px 0 0 var(--lavender);
}

.toc-num {
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.toc-link.is-active .toc-num {
    color: var(--lavender);
}

.toc-mobile {
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.toc-mobile summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    list-style: none;
}

.toc-mobile summary::-webkit-details-marker {
    display: none;
}

.toc-mobile .chev {
    transition: transform 0.2s;
}

.toc-mobile[open] .chev {
    transform: rotate(180deg);
}

.toc-mobile-list {
    display: grid;
    padding: 0 0.6rem 0.6rem;
}

.toc-mobile-list a {
    display: flex;
    gap: 0.75rem;
    padding: 0.55rem 0.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.toc-mobile-list a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.legal-prose {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.0625rem;
    line-height: 1.8;
}

.legal-lead p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
}

.legal-prose h2 {
    display: flex;
    align-items: baseline;
    gap: 0.9rem;
    margin: 3rem 0 1.25rem;
    padding-top: 3rem;
    border-top: 1px solid var(--line);
    font-family: 'Noto Serif', serif;
    font-size: 1.625rem;
    font-weight: 500;
    line-height: 1.3;
    color: #fff;
    scroll-margin-top: 1.5rem;
}

.legal-lead + h2,
.legal-prose > h2:first-child {
    margin-top: 2.5rem;
}

.legal-prose h3 {
    margin: 2rem 0 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
}

.legal-prose .sec-num {
    flex-shrink: 0;
    position: relative;
    top: -0.2em;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    font-variant-numeric: tabular-nums;
    color: var(--lilac);
    background: rgba(125, 61, 255, 0.14);
    border: 1px solid rgba(151, 99, 254, 0.35);
}

.legal-prose p {
    margin: 0 0 1.15rem;
}

.legal-prose strong {
    color: #fff;
    font-weight: 600;
}

.legal-prose a {
    color: var(--lavender);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-prose ul,
.legal-prose ol {
    display: grid;
    gap: 0.6rem;
    margin: 0 0 1.4rem;
    padding: 0;
    list-style: none;
}

.legal-prose li {
    position: relative;
    padding-left: 1.6rem;
}

.legal-prose ul > li::before {
    content: '';
    position: absolute;
    left: 0.2rem;
    top: 0.72em;
    width: 7px;
    height: 7px;
    border-radius: 1.5px;
    background: linear-gradient(135deg, #9763FE, #7D3DFF);
    transform: rotate(45deg);
}

.legal-prose ol {
    counter-reset: item;
}

.legal-prose ol > li::before {
    counter-increment: item;
    content: counter(item) '.';
    position: absolute;
    left: 0;
    color: var(--lavender);
    font-weight: 600;
}

.legal-prose blockquote {
    margin: 0 0 1.25rem;
    padding: 1rem 1.25rem;
    border-left: 2px solid var(--lavender);
    background: rgba(125, 61, 255, 0.08);
    border-radius: 0 10px 10px 0;
}

.legal-next {
    display: block;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
