/* ============================================
   LEGAL PAGES  —  1136 Residence
   privacy.html · terms.html · cookies.html
   ============================================ */

/* ── Page Layout ── */
.legal-page {
    padding-top: 120px;
    padding-bottom: 80px;
    background: var(--charcoal);
    min-height: 100vh;
}

.legal-container {
    max-width: 780px;
    margin: 0 auto;
}

/* ── Header ── */
.legal-header {
    margin-bottom: 48px;
    text-align: center;
}

.legal-badge {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(201, 169, 110, 0.08);
    border: 1px solid rgba(201, 169, 110, 0.15);
    padding: 5px 14px;
    border-radius: 40px;
    margin-bottom: 20px;
}

.legal-title {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 600;
    color: var(--cream);
    margin: 0 0 12px;
    line-height: 1.2;
}

.legal-updated {
    font-family: var(--sans);
    font-size: 0.74rem;
    color: var(--cream-muted);
    letter-spacing: 0.02em;
}

/* ── Body / Sections ── */
.legal-body {
    font-family: var(--sans);
    color: var(--cream-muted);
    font-size: 0.85rem;
    line-height: 1.78;
}

.legal-section {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.legal-section h2 {
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 700;
    color: var(--cream);
    margin: 0 0 14px;
    letter-spacing: -0.01em;
}

.legal-section p {
    margin: 0 0 12px;
}

.legal-section ul,
.legal-section ol {
    margin: 0 0 14px;
    padding-left: 22px;
}

.legal-section li {
    margin-bottom: 8px;
}

.legal-section li strong {
    color: var(--cream);
}

.legal-section a {
    color: var(--gold);
    text-decoration: underline;
    text-decoration-color: rgba(201, 169, 110, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s;
}

.legal-section a:hover {
    text-decoration-color: var(--gold);
}

.legal-section code {
    font-family: 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.04);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.78rem;
    color: var(--cream);
}

/* ── Contact Card ── */
.legal-contact-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 20px 24px;
    margin-top: 12px;
}

.legal-contact-card p {
    margin: 0 0 6px;
}

.legal-contact-card p:last-child {
    margin-bottom: 0;
}

/* ── Cookie Table ── */
.cookie-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 16px 0;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
    min-width: 540px;
}

.cookie-table th {
    text-align: left;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cream-muted);
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
}

.cookie-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    vertical-align: top;
    color: var(--cream-muted);
}

.cookie-table tr:last-child td {
    border-bottom: none;
}

/* ── Footer Legal Links ── */
.footer-legal-links {
    display: flex;
    gap: 16px;
    align-items: center;
}

.footer-legal-links a {
    color: var(--cream-muted);
    font-size: 0.68rem;
    text-decoration: none;
    transition: color 0.2s;
    letter-spacing: 0.02em;
}

.footer-legal-links a:hover {
    color: var(--gold);
}

/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: rgba(15, 15, 15, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(201, 169, 110, 0.15);
    padding: 18px 24px;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 280px;
    font-family: var(--sans, 'Manrope', sans-serif);
    font-size: 0.76rem;
    color: rgba(245, 240, 230, 0.7);
    line-height: 1.6;
}

.cookie-banner-text a {
    color: var(--gold, #c9a96e);
    text-decoration: underline;
    text-decoration-color: rgba(201, 169, 110, 0.3);
    text-underline-offset: 3px;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    font-family: var(--sans, 'Manrope', sans-serif);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 10px 22px;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
}

.cookie-btn-accept {
    background: var(--gold, #c9a96e);
    color: #0f0f0f;
}

.cookie-btn-accept:hover {
    background: #d4b67e;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(201, 169, 110, 0.25);
}

.cookie-btn-decline {
    background: transparent;
    color: rgba(245, 240, 230, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-btn-decline:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(245, 240, 230, 0.8);
}

/* ── Mobile ── */
@media (max-width: 640px) {
    .legal-page {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .legal-container {
        padding: 0 20px;
    }

    .legal-section h2 {
        font-size: 0.92rem;
    }

    .legal-body {
        font-size: 0.8rem;
    }

    .footer-legal-links {
        gap: 12px;
    }

    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .cookie-banner-actions {
        justify-content: center;
    }
}
