/*
    This file only adds the legal-page content styles.
    The header, hero, footer, colours and responsive template all continue
    to come from the existing styles.css.
*/

.legal-page-hero {
    min-height: 370px;
}

.legal-page-hero .hero-inner {
    min-height: 370px;
    padding-block: 54px 72px;
}

.legal-page-hero .hero-copy {
    width: min(820px, 65%);
}

.hero-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--teal-dark);
    font-size: 16px;
    font-weight: 750;
    text-decoration: none;
}

.hero-back-link:hover {
    text-decoration: underline;
}

.hero-back-link:focus-visible {
    outline: 3px solid rgba(0,157,168,.35);
    outline-offset: 4px;
    border-radius: 4px;
}

.legal-content-section {
    padding: 42px 0 54px;
    background: var(--page);
}

.legal-content-card {
    width: min(100%, 1050px);
    margin-inline: auto;
    padding: clamp(28px, 4vw, 54px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.legal-content-card h2 {
    margin: 42px 0 14px;
    color: var(--navy);
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.2;
    letter-spacing: -.025em;
}

.legal-content-card h2:first-child {
    margin-top: 0;
}

.legal-content-card h3 {
    margin: 30px 0 12px;
    color: var(--teal-dark);
    font-size: 20px;
    line-height: 1.3;
}

.legal-content-card p,
.legal-content-card li {
    color: var(--text);
    font-size: 16px;
    line-height: 1.72;
}

.legal-content-card p {
    margin: 0 0 16px;
}

.legal-content-card ul,
.legal-content-card ol {
    margin: 0 0 22px;
    padding-left: 24px;
}

.legal-content-card li + li {
    margin-top: 7px;
}

.legal-content-card a {
    color: var(--teal-dark);
    font-weight: 700;
    overflow-wrap: anywhere;
    text-underline-offset: 2px;
}

.legal-clause {
    margin: 0 0 14px;
}

.legal-clause h2 {
    margin: 0;
    padding: 17px 19px;
    color: var(--text);
    background: #f4f9fa;
    border-left: 4px solid var(--teal);
    border-radius: 0 10px 10px 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.7;
    letter-spacing: 0;
}

.legal-clause h2 span {
    margin-right: 5px;
    color: var(--teal-dark);
    font-weight: 800;
}

@media (max-width: 760px) {
    .legal-page-hero {
        min-height: auto;
    }

    .legal-page-hero .hero-inner {
        min-height: 440px;
        padding-block: 36px 80px;
    }

    .legal-page-hero .hero-copy {
        width: 100%;
    }

    .legal-content-section {
        padding: 22px 0 36px;
    }

    .legal-content-card {
        padding: 24px 20px;
        border-radius: 12px;
    }

    .legal-content-card p,
    .legal-content-card li {
        font-size: 15px;
    }

    .legal-clause h2 {
        padding: 15px;
        font-size: 15px;
    }
}
