/* TERMS OF USE — two-column layout: sticky sidebar (nav + contact)
   on the left, terms body on the right. Reuses gwp-homepage tokens. */

.tou-page {
    background-color: #ffffff;
    padding: 60px 24px 100px;
}

@media (min-width: 992px) {
    .tou-page { padding: 80px 30px 120px; }
}

.tou-page__container {
    width: 100%;
    max-width: 1370px;
    margin: 0 auto;
}

/* ---- Two-column grid ---- */
.tou-page__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 992px) {
    .tou-page__grid {
        grid-template-columns: 361px minmax(0, 1fr);
        gap: 70px;
        align-items: flex-start;
    }
}

/* SIDEBAR */
.tou-sidebar {
    background-color: #f0f4fe;
    border-radius: 16px;
    padding: 30px 20px 30px 22px;
}

@media (min-width: 992px) {
    .tou-sidebar { position: sticky; top: 24px; }
}

/* ---- Quick-nav links ---- */
.tou-sidebar__nav {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.tou-sidebar__nav-item + .tou-sidebar__nav-item {
    padding-top: 25px;
    border-top: 0.6px solid #d0d8ea;
}

.tou-sidebar__nav-link {
    display: block;
    font-family: var(--gwp-font-title);
    font-weight: var(--gwp-fw-medium);
    font-size: 20px;
    color: #31356e;
    text-decoration: none;
    line-height: normal;
    word-break: break-word;
}

.tou-sidebar__nav-link:hover,
.tou-sidebar__nav-link:focus {
    text-decoration: underline;
}

/* ---- Divider between nav list and contact list ---- */
.tou-sidebar__divider {
    height: 0;
    border: 0;
    border-top: 0.6px solid #d0d8ea;
    margin: 0 0 25px;
}

/* ---- Contact info list ---- */
.tou-sidebar__contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.tou-sidebar__contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.tou-sidebar__contact-item + .tou-sidebar__contact-item {
    padding-top: 25px;
    border-top: 0.6px solid #d0d8ea;
}

/* ---- Circular icon badge
   Circle: Primary/Blue #31356e; glyph: Primary/Color #f5b209. */
.tou-sidebar__icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #31356e;
    color: #f5b209;
    border-radius: 128px;
    font-size: 22px;
    line-height: 1;
}

.tou-sidebar__contact-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #31356e;
}

.tou-sidebar__contact-title {
    font-family: var(--gwp-font-title);
    font-weight: var(--gwp-fw-bold);
    font-size: 20px;
    margin: 0;
    line-height: normal;
}

.tou-sidebar__contact-body p,
.tou-sidebar__contact-body address {
    margin: 0;
    font-family: var(--gwp-font-title);
    font-weight: var(--gwp-fw-regular);
    font-size: var(--gwp-fs-md);
    line-height: 30px;
    color: #31356e;
    font-style: normal;
}

.tou-sidebar__contact-body a {
    color: #31356e;
    text-decoration: underline;
}

/* MAIN CONTENT — right column */
.tou-content { min-width: 0; }

/* ---- Header ---- */
.tou-content__header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 29px;
}

.tou-content__title {
    font-family: var(--gwp-font-title);
    font-weight: var(--gwp-fw-bold);
    font-size: 28px !important;
    line-height: normal;
    color: #302e2b;
    margin: 0;
    word-break: break-word;
}

@media (min-width: 768px) { .tou-content__title { font-size: 32px !important; } }
@media (min-width: 992px) { .tou-content__title { font-size: 36px !important; } }

.tou-content__updated {
    font-family: var(--gwp-font-body);
    font-weight: var(--gwp-fw-medium);
    font-size: var(--gwp-fs-base);
    line-height: 1.64;
    color: #302e2b;
    margin: 0;
}

/* ---- Sections ---- */
.tou-content__sections {
    display: flex;
    flex-direction: column;
    gap: 29px;
}

/* override
   preload.css/customTheme.css which force h2 to 32px. */
.tou-section__title {
    font-family: var(--gwp-font-title);
    font-weight: var(--gwp-fw-bold);
    font-size: 20px !important;
    line-height: normal;
    color: #302e2b;
    margin: 0 0 12px;
    word-break: break-word;
}

/* PRIVACY STATEMENT is 24px */
.tou-section__title--large { font-size: 24px !important; }

/* Currency sub-titles */
.tou-section__sub-title {
    font-family: var(--gwp-font-title);
    font-weight: var(--gwp-fw-bold);
    font-size: 18px !important;
    line-height: normal;
    color: #302e2b;
    margin: 0 0 12px;
}

.tou-section p {
    font-family: var(--gwp-font-body);
    font-weight: var(--gwp-fw-regular);
    font-size: var(--gwp-fs-base);
    line-height: 1.64;
    color: #302e2b;
    margin: 0 0 12px;
}

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

/* ---- Bulleted lists ---- */
.tou-section ul,
.tou-section ol {
    padding-left: 24px;
    margin: 12px 0;
    font-family: var(--gwp-font-body);
    font-size: var(--gwp-fs-base);
    line-height: 1.64;
    color: #302e2b;
}

.tou-section ul { list-style: disc; }
.tou-section ol { list-style: decimal; }

.tou-section ul li,
.tou-section ol li { margin-bottom: 0; }

.tou-section a {
    color: #302e2b;
    text-decoration: underline;
}

/* Blue link variant (LPG, Expedia) — WCAG AA-compliant contrast on white */
.tou-section a.tou-link--blue { color: #003d99; }

/* ---- Sub-blocks (used inside CURRENCY AND PAYMENT) ---- */
.tou-section__group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.tou-section__group:last-child { margin-bottom: 0; }

/* RESPONSIVE TWEAKS */

/* Prevent long emails/URLs in sidebar or content from forcing overflow */
.tou-sidebar__contact-body a,
.tou-section a { word-break: break-word; overflow-wrap: anywhere; }

/* ---- Tablet (576px – 991.98px): sidebar becomes 2-column internally
       so the terms body starts higher up the page ---- */
@media (min-width: 576px) and (max-width: 991.98px) {
    .tou-page { padding: 50px 24px 80px; }

    .tou-page__grid { gap: 28px; }

    .tou-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 30px;
        padding: 26px 24px;
    }
    .tou-sidebar__nav {
        grid-column: 1;
        margin: 0;
        gap: 18px;
    }
    .tou-sidebar__nav-item + .tou-sidebar__nav-item {
        padding-top: 18px;
    }
    .tou-sidebar__divider { display: none; }
    .tou-sidebar__contact {
        grid-column: 2;
        padding-left: 24px;
        border-left: 0.6px solid #d0d8ea;
        gap: 18px;
    }
    .tou-sidebar__contact-item + .tou-sidebar__contact-item {
        padding-top: 18px;
    }
    .tou-sidebar__nav-link { font-size: 18px; }
    .tou-sidebar__contact-title { font-size: 18px; }
    .tou-sidebar__contact-body p,
    .tou-sidebar__contact-body address { font-size: 16px; line-height: 26px; }

    .tou-content__sections { gap: 24px; }
}

/* ---- Mobile (< 576px): single-column stack, tighter spacing ---- */
@media (max-width: 575.98px) {
    .tou-page { padding: 36px 16px 60px; }
    .tou-page__grid { gap: 24px; }

    .tou-sidebar { padding: 22px 18px; border-radius: 14px; }
    .tou-sidebar__nav { gap: 18px; margin-bottom: 22px; }
    .tou-sidebar__nav-item + .tou-sidebar__nav-item { padding-top: 18px; }
    .tou-sidebar__nav-link { font-size: 17px; }

    .tou-sidebar__divider { margin-bottom: 22px; }

    .tou-sidebar__contact { gap: 18px; }
    .tou-sidebar__contact-item { gap: 12px; }
    .tou-sidebar__contact-item + .tou-sidebar__contact-item { padding-top: 18px; }
    .tou-sidebar__icon {
        flex: 0 0 36px;
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    .tou-sidebar__contact-title { font-size: 17px; }
    .tou-sidebar__contact-body { gap: 6px; }
    .tou-sidebar__contact-body p,
    .tou-sidebar__contact-body address { font-size: 15px; line-height: 24px; }

    .tou-content__header { gap: 8px; margin-bottom: 22px; }
    .tou-content__updated { font-size: 14px; }
    .tou-content__sections { gap: 22px; }

    .tou-section__title { font-size: 18px !important; }
    .tou-section__title--large { font-size: 20px !important; }
    .tou-section__sub-title { font-size: 16px !important; }
    .tou-section p,
    .tou-section ul,
    .tou-section ol { font-size: 15px; line-height: 1.6; }
    .tou-section ul,
    .tou-section ol { padding-left: 20px; }
}
