/* =============================================================
   legal.css — AIRE Legal & Policy Information Pages Styles
   (Matching FOOTER-2 Design & Theme Guidelines)
   ============================================================= */

/* ── Hero Banner ── */
.legal-hero {
    background: linear-gradient(135deg, #07131d 0%, #0a1e2b 50%, #0b2c3d 100%);
    color: #ffffff;
    padding: 24px 0;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 149, 218, 0.15) 0%, rgba(0, 149, 218, 0) 70%);
    pointer-events: none;
}

.legal-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 120, 110, 0.12) 0%, rgba(0, 120, 110, 0) 70%);
    pointer-events: none;
}

.legal-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #38bdf8;
    text-transform: uppercase;
    margin-bottom: 1rem;
    backdrop-filter: blur(8px);
}

.legal-hero-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.legal-hero-lead {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    max-width: 780px;
    margin-bottom: 0;
}

/* ── Breadcrumb & Action Toolbar ── */
.legal-toolbar-bar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.legal-breadcrumb {
    margin-bottom: 0;
    font-size: 13px;
}

.legal-breadcrumb .breadcrumb-item a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.legal-breadcrumb .breadcrumb-item a:hover {
    color: var(--color-primary, #0095da);
}

.legal-breadcrumb .breadcrumb-item.active {
    color: #0f172a;
    font-weight: 600;
}

.legal-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 6px 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.legal-action-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

.legal-action-btn.primary {
    background: rgba(0, 149, 218, 0.08);
    border-color: rgba(0, 149, 218, 0.2);
    color: var(--color-primary, #0095da);
}

.legal-action-btn.primary:hover {
    background: var(--color-primary, #0095da);
    color: #ffffff;
}

/* ── Content Layout & Sticky Sidebar ── */
.legal-layout-wrap {
    padding-top: 2.5rem;
    padding-bottom: 4rem;
}

.legal-sidebar-sticky {
    position: sticky;
    top: 90px;
    z-index: 10;
}

.legal-nav-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    margin-bottom: 1.5rem;
}

.legal-nav-header {
    padding: 14px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #475569;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.legal-menu-list {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.legal-menu-item {
    display: flex;
    align-items: center;
    padding: 10px 18px;
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.legal-menu-item .menu-icon {
    font-size: 16px;
    margin-right: 12px;
    color: #94a3b8;
    transition: color 0.2s ease;
    width: 20px;
    text-align: center;
}

.legal-menu-item .chevron {
    margin-left: auto;
    font-size: 12px;
    color: #cbd5e1;
    transition: transform 0.2s ease, color 0.2s ease;
}

.legal-menu-item:hover {
    background: #f8fafc;
    color: var(--color-primary, #0095da);
}

.legal-menu-item:hover .menu-icon {
    color: var(--color-primary, #0095da);
}

.legal-menu-item:hover .chevron {
    transform: translateX(3px);
    color: var(--color-primary, #0095da);
}

.legal-menu-item.active {
    background: rgba(0, 149, 218, 0.08);
    color: var(--color-primary, #0095da);
    font-weight: 700;
}

.legal-menu-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--color-primary, #0095da);
    border-radius: 0 4px 4px 0;
}

.legal-menu-item.active .menu-icon {
    color: var(--color-primary, #0095da);
}

/* ── Support Widget Card ── */
.legal-support-card {
    background: linear-gradient(135deg, #0a1f2d 0%, #0d2f44 100%);
    border-radius: 16px;
    padding: 22px;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(10, 31, 45, 0.15);
    position: relative;
    overflow: hidden;
}

.legal-support-card::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(0, 149, 218, 0.25) 0%, transparent 70%);
    border-radius: 50%;
}

.legal-support-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #38bdf8;
    margin-bottom: 14px;
}

.legal-support-card h5 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.legal-support-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin-bottom: 16px;
}

.legal-support-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 9px 16px;
    background: #ffffff;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.legal-support-btn:hover {
    background: #f8fafc;
    color: var(--color-primary, #0095da);
    transform: translateY(-1px);
}

/* ── Content Card & Typography ── */
.legal-content-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .legal-content-card {
        padding: 20px;
    }
}

/* Summary Callout Box */
.legal-summary-box {
    background: #f8fafc;
    border-left: 4px solid var(--color-primary, #0095da);
    border-radius: 0 12px 12px 0;
    padding: 18px 22px;
    margin-bottom: 28px;
}

.legal-summary-box h4 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.legal-summary-box p {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ── Prose & Dynamic CMS Content Styling ── */
.aire-page-prose {
    font-size: 15px;
    line-height: 1.8;
    color: #334155;
    word-break: break-word;
    overflow-wrap: break-word;
}

.aire-page-prose h1,
.aire-page-prose h2,
.aire-page-prose h3,
.aire-page-prose h4,
.aire-page-prose h5,
.aire-page-prose h6 {
    color: #0f172a;
    font-weight: 700;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.aire-page-prose h2 {
    font-size: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.aire-page-prose h3 {
    font-size: 17px;
}

.aire-page-prose p {
    margin-bottom: 1.25rem;
}

.aire-page-prose ul,
.aire-page-prose ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.aire-page-prose li {
    margin-bottom: 0.5rem;
}

.aire-page-prose img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.aire-page-prose table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    display: block;
    overflow-x: auto;
}

.aire-page-prose table th,
.aire-page-prose table td {
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
}

.aire-page-prose table th {
    background: #f8fafc;
    font-weight: 700;
}

.aire-page-prose blockquote {
    border-left: 4px solid var(--color-primary, #0095da);
    padding: 12px 18px;
    margin: 1.5rem 0;
    background: #f8fafc;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #475569;
}

/* Accordion Section Cards */
.legal-accordion-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.legal-accordion-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.legal-accordion-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    background: #ffffff;
    border-bottom: 1px solid transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.legal-accordion-item.is-open .legal-accordion-header {
    background: #f8fafc;
    border-bottom-color: #f1f5f9;
}

.legal-num-badge {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 149, 218, 0.08);
    color: var(--color-primary, #0095da);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.legal-accordion-item.is-open .legal-num-badge {
    background: var(--color-primary, #0095da);
    color: #ffffff;
}

.legal-accordion-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0;
    flex-grow: 1;
}

.legal-accordion-chevron {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #64748b;
    transition: transform 0.25s ease, background 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.legal-accordion-item.is-open .legal-accordion-chevron {
    transform: rotate(180deg);
    background: var(--color-primary, #0095da);
    color: #ffffff;
}

.legal-accordion-body {
    padding: 22px 20px;
    font-size: 14.5px;
    line-height: 1.75;
    color: #334155;
    background: #ffffff;
    display: none;
}

.legal-accordion-item.is-open .legal-accordion-body {
    display: block;
}

/* ── Interactive Cookie Category Cards & Toggles ── */
.cookie-category-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 14px;
    transition: all 0.2s ease;
}

.cookie-category-card:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.cookie-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.cookie-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-badge-active {
    background: #dcfce7;
    color: #166534;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Modern Switch Toggle */
.form-switch-modern {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.form-switch-modern input {
    opacity: 0;
    width: 0;
    height: 0;
}

.form-switch-modern .switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 34px;
}

.form-switch-modern .switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.form-switch-modern input:checked+.switch-slider {
    background-color: var(--color-primary, #0095da);
}

.form-switch-modern input:checked+.switch-slider:before {
    transform: translateX(20px);
}

.form-switch-modern input:disabled+.switch-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── Modern Legal Table ── */
.legal-table-wrap {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin: 16px 0;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    margin-bottom: 0;
}

.legal-table thead th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.legal-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}

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

.legal-table tbody tr:hover td {
    background: #fcfdfe;
}

.legal-cookie-name {
    font-family: monospace;
    font-weight: 600;
    color: #0284c7;
    background: #f0f9ff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12.5px;
}

/* ── Browser Control Cards ── */
.browser-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.browser-guide-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    color: #1e293b;
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.browser-guide-card:hover {
    background: #ffffff;
    border-color: var(--color-primary, #0095da);
    color: var(--color-primary, #0095da);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.browser-guide-card i {
    font-size: 20px;
    color: var(--color-primary, #0095da);
}

/* ── DPO Contact Block ── */
.dpo-contact-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 20px;
    margin-top: 14px;
}

.dpo-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #334155;
}

.dpo-contact-item:last-child {
    margin-bottom: 0;
}

.dpo-contact-item i {
    font-size: 18px;
    color: var(--color-primary, #0095da);
    margin-top: 2px;
}

/* ── Print Media Optimization ── */
@media print {

    header,
    footer,
    .site-header,
    .site-footer,
    .legal-sidebar-sticky,
    .legal-toolbar-bar,
    .legal-action-btn,
    .navbar,
    .top-header {
        display: none !important;
    }

    .legal-hero {
        background: #ffffff !important;
        color: #000000 !important;
        padding: 0 !important;
        border: none !important;
    }

    .legal-hero-title {
        color: #000000 !important;
        font-size: 24pt !important;
    }

    .legal-hero-lead {
        color: #333333 !important;
    }

    .legal-content-card {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    .legal-accordion-body {
        display: block !important;
    }

    .legal-accordion-chevron {
        display: none !important;
    }
}