/* ========================================
   LEGAL / INFO PAGES — Shared Styles
   ======================================== */

/* ---- PAGE HEADER ---- */
.page-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.page-header__inner {
    display: flex;
    align-items: center;
    height: 60px;
}

.page-header__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.page-header__back:hover {
    color: var(--green);
    background: rgba(20, 241, 149, 0.06);
}

/* ---- PAGE CONTENT ---- */
.page-content {
    padding: 60px 0 80px;
    min-height: calc(100vh - 140px);
}

.page-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--green), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-meta {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 48px;
}

/* ---- LEGAL CONTENT ---- */
.legal-content {
    max-width: 760px;
}

.legal-content section {
    margin-bottom: 40px;
}

.legal-content h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.legal-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 20px;
    margin-bottom: 10px;
}

.legal-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 14px;
}

.legal-content ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.legal-content li {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 8px;
}

.legal-content strong {
    color: var(--text-primary);
}

/* ---- RISK WARNING BOX ---- */
.risk-warning {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 24px;
    background: rgba(255, 170, 0, 0.06);
    border: 1px solid rgba(255, 170, 0, 0.2);
    border-radius: var(--radius);
    margin-bottom: 40px;
}
.risk-warning svg {
    flex-shrink: 0;
    margin-top: 2px;
}
.risk-warning p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.risk-highlight {
    padding: 16px 20px;
    background: rgba(20, 241, 149, 0.06);
    border: 1px solid rgba(20, 241, 149, 0.15);
    border-radius: var(--radius-sm);
    margin: 16px 0;
}
.risk-highlight p {
    margin: 0;
    font-size: 14px;
}

/* ---- COOKIE TABLE ---- */
.cookie-table {
    overflow-x: auto;
    margin: 16px 0;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.cookie-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.cookie-table th {
    text-align: left;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 1px solid var(--border);
}

.cookie-table td {
    padding: 12px 16px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.cookie-table tr:last-child td {
    border-bottom: none;
}

.cookie-table code {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 13px;
    color: var(--purple-light);
    background: rgba(153, 69, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

/* ---- PAGE FOOTER ---- */
.page-footer {
    border-top: 1px solid var(--border);
    padding: 24px 0;
}
.page-footer p {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .page-content {
        padding: 40px 0 60px;
    }
    .legal-content h2 {
        font-size: 18px;
    }
    .cookie-table {
        font-size: 13px;
    }
    .cookie-table th,
    .cookie-table td {
        padding: 10px 12px;
    }
}
