.legal-hero {
    margin-bottom: 0;
    padding: 72px 0;
    background: #2c3e50;
}

.legal-hero h1 {
    margin: 0 0 14px;
    color: #fff !important;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.12;
    font-weight: 800;
}

.legal-hero p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.65;
}

.legal-page {
    background: #f7fafc;
    padding: 48px 0 72px;
    color: #102133;
}

.legal-page .container {
    max-width: 1120px;
}

.legal-intro {
    max-width: 880px;
    margin: 0 0 28px;
    padding: 0 0 24px;
    border-bottom: 1px solid #d9e2ec;
}

.legal-intro p {
    margin: 0;
    color: #526273;
    font-size: 1.05rem;
    line-height: 1.7;
}

.legal-intro .legal-kicker {
    margin-bottom: 8px;
    color: #1f78b4;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0;
}

.legal-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.legal-nav {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 4px;
    padding: 10px;
    background: #fff;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
}

.legal-nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    color: #455565;
    font-size: 0.94rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.legal-nav a:hover,
.legal-nav a:focus {
    background: #edf7ff;
    color: #1d6fa5;
    outline: none;
}

.legal-content {
    display: grid;
    gap: 18px;
}

.legal-section {
    background: #fff;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    padding: 28px;
}

.legal-section h2 {
    margin: 0 0 14px;
    color: #102133;
    font-size: clamp(1.32rem, 2vw, 1.75rem);
    line-height: 1.25;
    font-weight: 800;
}

.legal-section p {
    margin: 0 0 16px;
    color: #455565;
    font-size: 1rem;
    line-height: 1.78;
}

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

.legal-section ul {
    display: grid;
    gap: 10px;
    margin: 0 0 18px;
    padding-left: 22px;
    color: #455565;
    line-height: 1.7;
}

.legal-section li::marker {
    color: #1d6fa5;
}

.cancellation-options-table {
    display: grid;
    overflow: hidden;
    margin-top: 18px;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
}

.cancellation-options-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1.35fr);
    border-top: 1px solid #e6edf3;
}

.cancellation-options-row:first-child {
    border-top: 0;
}

.cancellation-options-row > div {
    padding: 16px 18px;
    color: #455565;
    line-height: 1.6;
    border-left: 1px solid #e6edf3;
}

.cancellation-options-row > div:first-child {
    border-left: 0;
}

.cancellation-options-head {
    background: #f7fafc;
}

.cancellation-options-head > div {
    color: #102133;
    font-weight: 800;
}

.legal-section .btn {
    margin: 4px 10px 4px 0;
    border-radius: 8px;
    font-weight: 700;
}

.legal-section .btn-outline-primary {
    color: #1d6fa5;
    border-color: #1d6fa5;
}

.legal-section .btn-outline-primary:hover,
.legal-section .btn-outline-primary:focus {
    color: #fff;
    background: #1d6fa5;
}

@media (max-width: 991px) {
    .legal-layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .legal-nav {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cancellation-options-row {
        grid-template-columns: 1fr;
    }

    .cancellation-options-row > div {
        border-left: 0;
        border-top: 1px solid #e6edf3;
    }

    .cancellation-options-row > div:first-child {
        border-top: 0;
        padding-bottom: 8px;
    }

    .cancellation-options-head {
        display: none;
    }
}

@media (max-width: 575px) {
    .legal-hero {
        padding: 52px 0;
    }

    .legal-page {
        padding: 32px 0 52px;
    }

    .legal-nav {
        grid-template-columns: 1fr;
    }

    .legal-section {
        padding: 22px;
    }

    .legal-section .btn {
        width: 100%;
        margin-right: 0;
    }

    .legal-section .ms-2 {
        margin-left: 0 !important;
    }
}
