/* Shared styles for legal pages */

/* Legal page banner */
.legal-banner {
    position: relative;
    width: 100%;
    height: 58vh;
    min-height: 460px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #EBEEF1;
}

.legal-banner-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    z-index: 0;
}

.legal-banner-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(10, 25, 35, 0.72) 0%,
        rgba(10, 25, 35, 0.38) 50%,
        rgba(10, 25, 35, 0.55) 100%
    );
}

.legal-banner-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 var(--space-6);
    max-width: 740px;
}

.legal-banner-inner::before {
    content: '';
    display: block;
    width: 36px;
    height: 1px;
    background: rgba(255, 255, 255, 0.40);
    margin: 0 auto var(--space-5);
}

.legal-title {
    font-family: 'Inter', sans-serif;
    font-size: 3.4rem;
    font-weight: 300;
    letter-spacing: 0.06em;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: var(--space-4);
}

.legal-entity {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.60);
    letter-spacing: 0.06em;
}

.legal-updated {
    display: block;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.50);
    letter-spacing: 0.03em;
    margin-top: var(--space-2);
}

/* Page content */
.legal-content {
    background: #EBEEF1;
    padding-top: var(--space-20);
    padding-bottom: var(--space-20);
    min-height: 50vh;
}

.legal-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 var(--space-8);
}

/* Content sections */
.legal-section {
    margin-bottom: var(--space-10);
    padding-bottom: var(--space-8);
    border-bottom: 1px solid var(--color-gray-200);
}

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

.legal-section h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.7rem;
    font-weight: 500;
    line-height: 1.25;
    color: var(--color-navy);
    margin-bottom: var(--space-5);
    letter-spacing: 0em;
}

.legal-section h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-top: var(--space-6);
    margin-bottom: var(--space-3);
    letter-spacing: 0.01em;
}

.legal-section p {
    font-size: var(--text-base);
    line-height: 1.85;
    color: #3a3a3a;
    margin-bottom: var(--space-5);
}

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

.legal-section ul,
.legal-section ol {
    margin-bottom: var(--space-5);
    padding-left: var(--space-6);
}

.legal-section li {
    font-size: var(--text-base);
    line-height: 1.85;
    color: #3a3a3a;
    margin-bottom: var(--space-2);
}

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

.legal-section a {
    color: var(--color-blue);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.legal-section a:hover {
    color: var(--color-navy);
}

/* Notice box */
.legal-notice {
    background: var(--color-gray-50, #EBEEF1);
    border-left: 3px solid var(--color-blue);
    padding: var(--space-6);
    margin-bottom: var(--space-10);
    border-radius: 0 4px 4px 0;
}

.legal-notice h2 {
    font-family: 'Inter', sans-serif;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: var(--space-4);
    letter-spacing: 0em;
}

.legal-notice p {
    font-size: var(--text-sm);
    line-height: 1.75;
    color: var(--color-gray-600);
    margin-bottom: var(--space-3);
}

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

.notice-date {
    font-style: italic;
    color: var(--color-gray-500);
}

.note {
    font-size: var(--text-xs);
    font-style: italic;
    color: var(--color-gray-500);
}

/* Tables */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-6) 0;
    font-size: var(--text-sm);
}

.legal-table th,
.legal-table td {
    text-align: left;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--color-gray-200);
}

.legal-table th {
    background: #F1F3F5;
    font-weight: 500;
    color: var(--color-navy);
}

.legal-table td {
    color: var(--color-gray-600);
}

.legal-table .total-row {
    background: #F1F3F5;
}

/* Address */
.legal-address {
    font-style: normal;
    font-size: var(--text-base);
    line-height: 1.85;
    color: #3a3a3a;
    margin: var(--space-4) 0;
}

.legal-address strong {
    color: var(--color-navy);
}

/* Legal page footer */
.legal-page .site-footer {
    background: #1B3A4B;
    padding: 0;
}

.legal-page .footer-bottom {
    background: #132838;
    padding: 0;
}

.legal-page .footer-legal-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-page .footer-legal-links .copyright {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
}

.legal-page .footer-bottom a {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 150ms ease;
}

.legal-page .footer-bottom a:hover {
    color: #7AABCC;
    text-decoration: underline;
    text-decoration-color: #7AABCC;
}

.legal-page .footer-bottom a[aria-current="page"] {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* Responsive layout */
@media (max-width: 768px) {
    .legal-banner {
        height: 50vh;
        min-height: 340px;
    }

    .legal-title {
        font-size: 2rem;
    }

    .legal-container {
        padding: 0 var(--space-5);
    }

    .legal-content {
        padding-top: var(--space-12);
        padding-bottom: var(--space-12);
    }

    .legal-section h2 {
        font-size: var(--text-xl);
    }

    .legal-table {
        font-size: var(--text-xs);
    }

    .legal-table th,
    .legal-table td {
        padding: var(--space-2) var(--space-3);
    }

    .legal-page .footer-legal-links {
        gap: 0.6rem;
    }

    .legal-page .footer-bottom a {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .legal-banner {
        height: 45vh;
        min-height: 280px;
    }

    .legal-title {
        font-size: 1.6rem;
    }

    .legal-updated {
        font-size: 0.75rem;
    }

    .legal-container {
        padding: 0 var(--space-4);
    }

    .legal-content {
        padding-top: var(--space-10);
        padding-bottom: var(--space-10);
    }

    .legal-section h2 {
        font-size: var(--text-lg);
    }

    .legal-notice {
        padding: var(--space-4);
    }

    .legal-page .footer-bottom a,
    .legal-page .footer-legal-links .copyright {
        font-size: 0.7rem;
    }
}

@media print {
    .legal-page .site-header,
    .legal-banner,
    .legal-page .site-footer {
        display: none;
    }

    .legal-content {
        padding-top: 0;
    }

    .legal-section {
        page-break-inside: avoid;
    }
}
/* Wide-screen layout */
@media (min-width: 1600px) {
    .legal-banner {
        height: 60vh;
        min-height: 520px;
    }

    .legal-container {
        max-width: 980px;
    }

    .legal-content {
        padding-top: 7rem;
        padding-bottom: 7rem;
    }
}

@media (min-width: 1920px) {
    .legal-banner {
        height: 62vh;
        min-height: 600px;
    }

    .legal-container {
        max-width: 1060px;
    }

    .legal-content {
        padding-top: 9rem;
        padding-bottom: 9rem;
    }
}

@media (min-width: 2560px) {
    .legal-banner {
        height: 65vh;
        min-height: 700px;
    }

    .legal-container {
        max-width: 1200px;
    }

    .legal-content {
        padding-top: 11rem;
        padding-bottom: 11rem;
    }
}


/* ============================================================
   Board 12 "One screen" — C-048, 2026-10-29
   Plain navy banner, left-aligned title, light footer.
   ============================================================ */

.legal-banner {
    height: auto;
    min-height: 0;
    display: block;
    background-color: #0F252F;
    padding: 10rem 0 4rem;
}

.legal-banner-overlay {
    display: none;
}

.legal-banner-inner {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 3rem;
    text-align: left;
}

.legal-banner-inner::before {
    display: none;
}

.legal-title {
    font-size: 3.4rem;
    letter-spacing: 0;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.legal-entity {
    font-family: var(--font-primary);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #9EC3DB;
}

.legal-content {
    background: #E6EBEF;
}

.legal-page .site-footer,
.legal-page .footer-bottom {
    background: #E6EBEF;
}

.legal-page .footer-legal-links {
    border-top-color: rgba(15, 37, 61, 0.16);
}

.legal-page .footer-legal-links .copyright {
    color: #495057;
}

.legal-page .footer-bottom a {
    color: #1B3A4B;
    text-decoration: underline;
    text-decoration-color: rgba(27, 58, 75, 0.35);
    text-underline-offset: 3px;
}

.legal-page .footer-bottom a:hover {
    color: #2D6187;
    text-decoration-color: #2D6187;
}

.legal-page .footer-bottom a[aria-current="page"] {
    color: #1B3A4B;
}

@media (max-width: 768px) {
    .legal-banner {
        height: auto;
        min-height: 0;
        padding: 7rem 0 2.5rem;
    }

    .legal-banner-inner {
        padding: 0 1.5rem;
    }

    .legal-title {
        font-size: 2.4rem;
    }
}

@media (min-width: 1600px) {
    .legal-banner {
        height: auto;
        min-height: 0;
    }

    .legal-banner-inner {
        max-width: 1700px;
        padding: 0 4rem;
    }
}

@media (min-width: 1920px) {
    .legal-banner {
        height: auto;
        min-height: 0;
    }

    .legal-banner-inner {
        max-width: 1900px;
        padding: 0 5rem;
    }
}

@media (min-width: 2560px) {
    .legal-banner {
        height: auto;
        min-height: 0;
    }
}

@media (max-width: 480px) {
    .legal-banner {
        height: auto;
        min-height: 0;
    }
}

/* ============================================================
   C-054, 2026-11-02 — Inter throughout: sizes re-set for Inter.
   ============================================================ */

.legal-title {
    font-size: 2.8rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.legal-section h2 {
    font-size: 1.35rem;
    font-weight: 500;
}

.legal-section h3 {
    font-size: 1.05rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .legal-title {
        font-size: 2rem;
    }
}

/* ============================================================
   C-084, 2026-11-06 — legal-page banner: the supplied geometric
   navy image as background, over the C-048 navy (#0F252F),
   which shows if the image does not load.
   ============================================================ */

.legal-banner {
    background: #0F252F url('../assets/images/legal-banner.jpg') center / cover no-repeat;
}

/* ============================================================
   C-085, 2026-11-06 — legal-page body two steps lighter than
   the footer (#E6EBEF, unchanged).
   ============================================================ */

.legal-content {
    background: #F7F9FA;
}
