/* ===== LEGAL PAGES ===== */

.legal-page {
    padding-top: 80px;
    padding-bottom: 60px;
    min-height: 100vh;
    background: #000;
    color: #ccc;
}

.legal-content {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    line-height: 1.6;
}

.legal-content h1 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
    letter-spacing: 0.5px;
}

.legal-content h2 {
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    margin: 32px 0 10px;
    letter-spacing: 0.3px;
}

.legal-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: #ddd;
    margin: 22px 0 8px;
    letter-spacing: 0.2px;
}

.legal-content .legal-updated {
    color: #666;
    font-size: 13px;
    margin-bottom: 30px;
}

.legal-content p {
    color: #bbb;
    font-size: 15px;
    margin: 0 0 14px;
}

.legal-content ul,
.legal-content ol {
    color: #bbb;
    font-size: 15px;
    margin: 0 0 14px;
    padding-left: 24px;
}

.legal-content li {
    margin-bottom: 6px;
}

.legal-content code {
    background: #1a1a1a;
    color: #ff8c8c;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
}

.legal-content a {
    color: #ff2e2e;
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-content em {
    color: #888;
    font-style: italic;
}

.legal-content strong {
    color: #fff;
    font-weight: 700;
}

@media (max-width: 768px) {
    .legal-content {
        padding: 0 16px;
    }
    .legal-content h1 {
        font-size: 26px;
    }
    .legal-content h2 {
        font-size: 17px;
    }
}

/* Click-to-reveal email links on Contact page */
.legal-content .email-link {
    cursor: pointer;
    border-bottom: 1px dashed currentColor;
}
.legal-content .email-link::after {
    content: " 🔒";
    font-size: 11px;
    opacity: 0.7;
}


/* ===== COOKIE POLICY ===== */

.legal-content .cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: 13px;
    background: #0d0d0d;
    border: 1px solid #222;
}

.legal-content .cookie-table th,
.legal-content .cookie-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #1a1a1a;
    text-align: left;
    vertical-align: top;
}

.legal-content .cookie-table th {
    background: #1a1a1a;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legal-content .cookie-table td {
    color: #bbb;
}

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

/* Mobile: stack the table */
@media (max-width: 600px) {
    .legal-content .cookie-table,
    .legal-content .cookie-table thead,
    .legal-content .cookie-table tbody,
    .legal-content .cookie-table th,
    .legal-content .cookie-table td,
    .legal-content .cookie-table tr {
        display: block;
    }
    .legal-content .cookie-table thead {
        display: none;
    }
    .legal-content .cookie-table tr {
        margin-bottom: 12px;
        border: 1px solid #222;
        padding: 8px;
    }
    .legal-content .cookie-table td {
        border: none;
        padding: 6px 0;
        font-size: 13px;
    }
    .legal-content .cookie-table td:before {
        content: attr(data-label);
        font-weight: 700;
        color: #fff;
        display: block;
        margin-bottom: 2px;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
}

/* Cookie category cards */
.legal-content .cookie-category {
    background: #0d0d0d;
    border: 1px solid #222;
    border-radius: 4px;
    padding: 14px 16px;
    margin: 12px 0;
}

.legal-content .cookie-category h3 {
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.legal-content .cookie-category p {
    margin: 0;
    color: #aaa;
    font-size: 13px;
    line-height: 1.55;
}

.cookie-status {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.cookie-status.always {
    background: #1a3d1a;
    color: #4ade80;
}

.cookie-status.optional {
    background: #3d2f1a;
    color: #fbbf24;
}

.cookie-status.thirdparty {
    background: #1a2a3d;
    color: #60a5fa;
}

.legal-content .cookie-note {
    background: #0a0a0a;
    border-left: 3px solid #ff2a2a;
    padding: 12px 14px;
    margin: 16px 0;
    color: #ccc;
    font-size: 13px;
    line-height: 1.55;
}


/* ===== Cookie consent toggle UI ===== */

.legal-content .cookie-category-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.legal-content .cookie-category-head h3 {
    margin: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

/* Override the original .cookie-category h3 layout from earlier — we now use the dedicated head */
.legal-content .cookie-category > h3 {
    display: block;
}

/* Toggle slider */
.cookie-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
}

.cookie-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cookie-toggle-slider {
    position: relative;
    width: 38px;
    height: 20px;
    background: #333;
    border-radius: 20px;
    transition: background .2s;
    flex-shrink: 0;
}

.cookie-toggle-slider::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #ddd;
    border-radius: 50%;
    transition: transform .2s, background .2s;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: #4ade80;
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
    transform: translateX(18px);
    background: #fff;
}

.cookie-toggle input:focus-visible + .cookie-toggle-slider {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}

.cookie-toggle-label {
    font-size: 12px;
    font-weight: 600;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 56px;
}

/* Reset button row */
.cookie-reset-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 4px;
    padding: 14px 16px;
    margin: 20px 0;
}

.cookie-reset-btn {
    background: #1a1a1a;
    color: #fff;
    border: 1px solid #333;
    padding: 9px 18px;
    border-radius: 3px;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}

.cookie-reset-btn:hover {
    background: #2a2a2a;
    border-color: #555;
}

.cookie-reset-hint {
    color: #888;
    font-size: 12px;
    flex: 1 1 200px;
}