/* html {
    scroll-behavior: smooth;
}

.legal-nav__card {
    scroll-behavior: smooth;
} */


/* =========================================
   LEGAL PAGE HERO
========================================= */
.legal-hero-section {
    position: relative;
    /* padding: 50px 0 60px; */
    padding: 80px 0 60px; 
    /* border-top: 2px solid var(--dts-secondary); */
    background: linear-gradient(90deg, #FBEAF0 0%, #FDF5F8 40%, #FFFFFF 100%);
    min-height: 321px;
}

.legal-hero-title {
    font-family: var(--dts-font-inter);
    font-weight: 700;
    font-size: 70px;
    line-height: 69px;
    color: #000;
    margin-bottom: 43px;
    max-width: 720px;
}

.legal-hero-title .highlight {
    color: var(--dts-secondary);
}

.legal-hero-content {
    max-width: 680px;   /* matches Figma's measured width exactly */
}

.legal-hero-content p {
    font-size: 24px;
    line-height: 29px;
    color: #000;
    margin-bottom: 1.1rem;
}

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

/* =========================================
   LEGAL TABS (sticky)
========================================= */
.legal-tabs-sticky-wrap {
    position: sticky;
    top: var(--site-header-height, 0px);
    z-index: 900;
    background: var(--dts-white-color);
    padding: 16px 0;
    /* border-bottom: 1px solid #F0E4E9; */
}

.legal-tabs {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 0.5px solid #878787;
    border-radius: 52px;
    padding: 10px 28px;
    margin-inline: auto;
    width: fit-content;
}

.legal-tabs__btn {
    border: none;
    background: transparent;
    padding: 10px 20px;
    border-radius: 24px;
    font-family: var(--dts-font-inter);
    font-weight: 500;
    font-size: 1rem;
    color: #43474F;
    cursor: pointer;
    transition: var(--dts-transition-effects);
    white-space: nowrap;
}

.legal-tabs__btn:hover {
    background: rgba(216, 27, 96, 0.08);
}

.legal-tabs__btn.is-active {
    background: var(--dts-secondary);
    color: var(--dts-white-color);
}

/* ---- Tab panels: only the active one is visible ---- */
.legal-tab-panel {
    display: none;
}

.legal-tab-panel.is-active {
    display: block;
}

/* Adjust the Quick Nav sticky offset to sit below the tabs bar,
   not the very top of the viewport */
.legal-tab-panel .legal-nav {
    top: calc(var(--site-header-height, 0px) + 90px);
}

.legal-nav {
    position: sticky;
    /* top: calc(var(--site-header-height, 0px) + 100px); */
    top: calc(var(--site-header-height, 0px) + 10px);
}
/* ---- Sub-clauses: indented (Figma-matched) ---- */
.legal-body__subsection {
    padding-left: 20px;
    /* border-left: 2px solid #F0E4E9; */
    margin-bottom: 1.25rem;
}

.legal-body__subheading {
    font-family: var(--dts-font-inter);
    font-weight: 700;
    font-size: 30px;
    color: #1A1A1A;
    margin: 0 0 0.5rem;
}

.legal-body__subsection p {
    margin-bottom: 0.5rem;
}

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

.legal-body__subsection .legal-body__list {
    margin-top: 0.5rem;
}

/* ---- Tabs: force true centering ---- */
.legal-tabs-sticky-wrap .container {
    display: flex;
    justify-content: center;
}


.legal-nav__card {
    max-height: calc(100vh - var(--site-header-height, 0px) - 120px);
    overflow-y: auto;
}

.page-template-privacyPolicyPage-php .legal-nav__card {
    max-height: fit-content;
}

/* Thin, subtle scrollbar for the nav itself */
.legal-nav__card::-webkit-scrollbar {
    width: 5px;
}

.legal-nav__card::-webkit-scrollbar-thumb {
    background: #E5E7EF;
    border-radius: 10px;
}

.legal-nav__card::-webkit-scrollbar-thumb:hover {
    background: var(--dts-secondary);
}

/* ---- Responsive: Tablet / iPad (max-width: 1024px) ---- */
@media (max-width: 1024px) {
    .legal-hero-title {
        font-size: 3.5rem; /* 56px — tablet step between desktop 70px and mobile 48px */
        line-height: 1.15;
    }

    .legal-body-inner {
        gap: 2.5rem;
    }
}

@media (max-width: 900px) {
    .legal-tabs {
        display: flex;
        overflow-x: auto;
        max-width: 100%;
        -webkit-overflow-scrolling: touch;

        /* Keep it scrollable, just hide the visible scrollbar track */
        scrollbar-width: none;      /* Firefox */
        -ms-overflow-style: none;   /* old Edge / IE */
    }

    .legal-tabs::-webkit-scrollbar {
        display: none; /* Chrome, Safari, new Edge */
    }

    .legal-tabs__btn {
        flex: none;
    }

    .legal-tab-panel .legal-nav {
        top: 0;
    }
    .legal-nav__card {
        max-height: none;
        overflow-y: visible;
    }
}

@media (max-width: 768px) {
    .legal-hero-section {
        padding: 50px 0 40px;
        min-height: 280px;
    }

    .legal-hero-title {
        font-size: 3rem; /* 48px — standard mobile h1 */
        line-height: 1.2;
        margin-bottom: 24px;
    }

    .legal-hero-content {
        max-width: 100%;
    }

    .legal-hero-content p {
        font-size: 1rem; /* 16px — standard mobile p */
        line-height: 1.5;
    }

    .legal-tabs__btn {
        font-size: 14px; /* standard mobile button */
        padding: 9px 16px;
    }

    /* Quick navigation hidden on mobile per request — the anchor list
       is still reachable via normal in-page scrolling, it just no
       longer takes up screen space as a separate nav block/sidebar. */
    .legal-nav {
        display: none;
    }
}

@media (max-width: 480px) {
    .legal-hero-title {
        font-size: 3rem; /* keep 48px standard mobile h1 across phone sizes */
    }

    .legal-tabs {
        padding: 8px 16px;
    }
}


/* =========================================
   LEGAL PAGE BODY (Quick Nav + Content)
========================================= */
.legal-body-section {
    background: var(--dts-white-color);
}

.legal-body-inner {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 4rem;
    align-items: start;
}

.legal-nav {
    position: sticky;
    top: calc(var(--site-header-height, 0px) + 10px);
}

.legal-nav__card {
    border: 0.5px solid #878787;
    border-radius: 14px;
    padding: 35px 5px;
}

.legal-nav__title {
    font-family: var(--dts-font-inter);
    font-weight: 700;
    font-size: 36px;
    color: #000;
    text-align: center;
    margin-bottom: 21px;
}

.legal-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.legal-nav__item {
    margin-bottom: 20px;
}

.legal-nav__link {
    display: block;
    padding: 12px 30px;
    border-radius: 60px;
    font-size: 20px;
    color: #000;
    text-decoration: none;
    font-weight: 600;
    line-height: 25px;
    transition: var(--dts-transition-effects);
}

.legal-nav__link:hover {
    background: rgba(216, 27, 96, 0.08);
    color: var(--dts-secondary);
}

.legal-nav__link.is-active {
    background: var(--dts-secondary);
    color: var(--dts-white-color);
    font-weight: 600;
    text-align: center;
}

/* ---- Body content typography ---- */
.legal-body__heading--h2 {
    font-family: var(--dts-font-inter);
    font-weight: 700;
    font-size: 44px;
    color: #000;
    margin: 0 0 2.5rem;
    scroll-margin-top: calc(var(--legal-sticky-offset, 100px) + 10px);
}

.legal-body > *:first-child {
    margin-top: 0;
}

.legal-body__heading--h3 {
    font-family: var(--dts-font-inter);
    font-weight: 700;
    font-size: 30px;
    color: #1A1A1A;
    margin: 1.5rem 0 0.75rem;
    scroll-margin-top: calc(var(--legal-sticky-offset, 100px) + 10px);
}

.legal-body p {
    font-size: 24px;
    line-height: 31px;
    color: var(--dts-text);
    margin-bottom: 1.1rem;
}

.legal-body__list {
    list-style: none;
    margin: 0 0 1.1rem;
    padding: 0;
}

.legal-body__list li {
    position: relative;
    padding-left: 18px;
    font-size: 24px;
    line-height: 34px;
    color: var(--dts-text);
    margin-bottom: 0.5rem;
}

.legal-body__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 9px;
    height: 9px;
    background: var(--dts-secondary);
}

.legal-body a {
    color: var(--dts-secondary);
    text-decoration: underline;
}


.legal-body__table-wrap {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.legal-body__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 18px;
}

.legal-body__table th,
.legal-body__table td {
    text-align: left;
    padding: 10px 14px;
    border: 1px solid #E5E7EF;
    vertical-align: top;
}

.legal-body__table th {
    background: #FBEAF0;
    font-weight: 700;
    color: #1A1A1A;
}

.legal-body__table td {
    color: var(--dts-text);
}
/* ---- Responsive ---- */
@media (max-width: 1024px) {
    /* .legal-body__heading--h2 had no tablet step at all — jumped
       straight from 44px desktop to whatever the mobile breakpoint set. */
    .legal-body__heading--h2 {
        font-size: 2.5rem; /* 40px — tablet step, above the mobile h2 standard */
    }
}

@media (max-width: 900px) {
    .legal-body-inner {
        grid-template-columns: 1fr;
    }

    .legal-nav {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    /* .legal-body__subheading, .legal-body__heading--h3, .legal-body p,
       .legal-body__list li and the table had NO mobile font treatment
       at all before this pass. */
    .legal-body__heading--h2 {
        font-size: 2.25rem; /* 36px — standard mobile h2 */
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }

    .legal-body__heading--h3,
    .legal-body__subheading {
        font-size: 20px; /* standard mobile h3 */
        line-height: 1.3;
    }

    .legal-body p {
        font-size: 1rem; /* 16px — standard mobile p */
        line-height: 1.5;
    }

    .legal-body__list li {
        font-size: 1rem; /* 16px — standard mobile li */
        line-height: 1.5;
    }

    .legal-body__table {
        font-size: 0.875rem; /* 14px — table copy is dense/tabular by nature,
                                 kept just under the 16px p standard so rows
                                 stay compact; the table already scrolls
                                 horizontally if it doesn't fit */
    }

    .legal-body__table th,
    .legal-body__table td {
        padding: 8px 10px;
    }

    /* Quick navigation hidden on mobile per request (see the hero/tabs
       media block above for the shared .legal-nav { display: none; }
       rule — it applies here too since this is the same class, just
       reiterated in a comment so it's not missed reading this section
       in isolation). */
}

@media (max-width: 600px) {
    .legal-body__heading--h2 {
        font-size: 2.25rem; /* keep 36px standard mobile h2 (was crashing to
                                1.25rem/20px here before — a heading rendering
                                smaller than its own body text) */
    }
}