/* ==========================================================================
   Legal pages (privacy.html / terms.html) — linktree theme
   ========================================================================== */
:root {
    --bg-dark: #0a0b0e;
    --card-bg: rgba(22, 25, 35, 0.75);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --accent: #9146FF;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-width: 720px;
    --radius-lg: 20px;
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 1.25rem;
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.bg-glow {
    position: fixed;
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(145, 70, 255, 0.12) 0%, rgba(88, 101, 242, 0.05) 45%, rgba(0, 0, 0, 0) 70%);
    z-index: -2;
    pointer-events: none;
}

.bg-grid {
    position: fixed;
    inset: 0;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 32px 32px;
    z-index: -1;
    pointer-events: none;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.legal-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.legal-header h1 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.last-updated {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.back-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.back-link:hover {
    color: var(--text-primary);
}

.legal-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.legal-card .doc-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.legal-card h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 1.75rem 0 0.5rem;
}

.legal-card h2:first-of-type {
    margin-top: 0;
}

.legal-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.legal-card ul {
    margin: 0.25rem 0 0.9rem 1.25rem;
}

.legal-card li {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

.legal-card strong {
    color: var(--text-primary);
    font-weight: 700;
}

.legal-card a {
    color: #b98bff;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color var(--transition-fast);
}

.legal-card a:hover {
    color: #d0b3ff;
    text-decoration: underline;
}

.cross-link {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cross-link a {
    color: #b98bff;
    text-decoration: none;
    font-weight: 600;
}

.cross-link a:hover {
    text-decoration: underline;
}

.footer {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.4rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-links .sep {
    color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
