/* ====== LEGAL PAGES STYLES ====== */
.legal-page {
    padding: 120px 0 80px;
    min-height: calc(100vh - 180px);
}
.legal-header { margin-bottom: 48px; }
.legal-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.legal-updated {
    font-size: .9rem;
    color: var(--muted);
    font-weight: 600;
}

.legal-content {
    max-width: 780px;
}
.legal-content h2 {
    font-size: 1.35rem;
    margin-top: 40px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--surface-2);
}
.legal-content h3 {
    font-size: 1.1rem;
    margin-top: 24px;
    margin-bottom: 8px;
    color: var(--text);
}
.legal-content p {
    margin-bottom: 16px;
    font-size: .95rem;
    line-height: 1.8;
}
.legal-content ul,
.legal-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}
.legal-content li {
    margin-bottom: 8px;
    font-size: .95rem;
    line-height: 1.7;
}
.legal-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .2s;
}
.legal-content a:hover {
    color: var(--accent-hover);
}
.legal-content code {
    background: var(--surface-2);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: .85rem;
    color: var(--text);
}
.legal-content strong {
    color: var(--text);
}

/* Refund Highlight Box */
.refund-highlight {
    background: var(--surface);
    border: 1px solid rgba(34,197,94,.2);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    margin-bottom: 40px;
}
.refund-highlight-icon {
    width: 64px; height: 64px;
    background: rgba(34,197,94,.1);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
}
.refund-highlight h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}
.refund-highlight p {
    color: var(--muted);
    max-width: 450px;
    margin: 0 auto;
}

/* Cookie Table */
.cookie-table-wrap {
    overflow-x: auto;
    margin-bottom: 24px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--surface-2);
}
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}
.cookie-table th {
    background: var(--surface-2);
    color: var(--text);
    font-weight: 700;
    text-align: left;
    padding: 12px 16px;
    white-space: nowrap;
}
.cookie-table td {
    padding: 12px 16px;
    border-top: 1px solid var(--surface-2);
    color: var(--muted);
    vertical-align: top;
}
.cookie-table tr:hover td {
    background: rgba(255,255,255,.02);
}

/* Footer Links for legal pages */
.footer-links {
    display: flex;
    gap: 24px;
}
.footer-links a {
    color: var(--muted);
    font-size: .85rem;
    font-weight: 600;
    transition: color .2s;
}
.footer-links a:hover {
    color: var(--accent);
}

/* ====== COOKIE CONSENT BANNER ====== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--surface);
    border-top: 1px solid var(--surface-3);
    padding: 20px 24px;
    transform: translateY(100%);
    transition: transform .4s cubic-bezier(.16,1,.3,1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.cookie-banner.visible {
    transform: translateY(0);
}
.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.cookie-banner-text {
    flex: 1;
    min-width: 280px;
}
.cookie-banner-text p {
    font-size: .9rem;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}
.cookie-banner-text a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}
.cookie-banner .btn {
    padding: 10px 24px;
    font-size: .85rem;
    border-radius: var(--radius-xs);
}

@media (max-width: 768px) {
    .cookie-banner-inner {
        flex-direction: column;
        text-align: center;
    }
    .cookie-banner-actions {
        width: 100%;
        justify-content: center;
    }
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
}
