:root {
    --bg-color: #020617;
    --card-bg: rgba(30, 41, 59, 0.5);
    --accent-blue: #38bdf8;
    --accent-purple: #818cf8;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
}

/* Reset / base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.legal-page {
    font-family:
        "Inter",
        -apple-system,
        sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- HEADER --- */
.page-header {
    border-bottom: 1px solid var(--border-color);
    padding: 24px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.page-header .logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(to right, #fff 30%, var(--accent-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--accent-blue);
}

/* --- LAYOUT --- */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px 80px;
}

/* --- CARD --- */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    padding: 48px 52px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

@media (max-width: 600px) {
    .card {
        padding: 28px 24px;
    }
    .page-header {
        padding: 18px 20px;
    }
}

/* --- TYPOGRAPHY --- */
.page-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(to bottom right, #fff 30%, var(--accent-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.4rem;
}

.page-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.policy-section {
    margin-bottom: 2.2rem;
}

.policy-section h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.9rem;
}

.policy-section h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
}

.policy-section p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 0.75rem;
}

/* --- TABLES --- */
.policy-section .table-wrapper {
    width: 100%;
    margin: 1rem 0 1.5rem;
    overflow-x: auto;
}

.policy-section table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    background-color: rgba(15, 23, 42, 0.7);
}

.policy-section th,
.policy-section td {
    border: 1px solid var(--border-color);
    padding: 0.6rem 0.75rem;
    text-align: left;
    vertical-align: top;
}

.policy-section th {
    font-weight: 600;
    color: var(--text-main);
    background: rgba(15, 23, 42, 0.9);
}

/* --- LISTS --- */
.policy-section ul,
.policy-section ol {
    margin: 0.75rem 0 1rem 1.3rem;
    padding-left: 1.1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
}

.policy-section ul {
    list-style-type: disc;
}

.policy-section ol {
    list-style-type: decimal;
}

.policy-section li {
    margin-bottom: 0.4rem;
}

.policy-section li strong {
    color: var(--text-main);
    font-weight: 600;
}

.policy-section a {
    color: var(--accent-blue);
    text-decoration: none;
}

.policy-section a:hover {
    text-decoration: underline;
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid var(--border-color);
}

footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--accent-blue);
}

footer .sep {
    margin: 0 8px;
    opacity: 0.4;
}
