/* =========================================================
   NEXT DIGI STORE - TERMS PAGE
========================================================= */

.nds-terms-page {
    margin: 0;
    color: #0f172a;
    background: #ffffff;
}

.nds-terms-page *,
.nds-terms-page *::before,
.nds-terms-page *::after {
    box-sizing: border-box;
}

.nds-terms-page html {
    scroll-behavior: smooth;
}

.terms-container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

/* HERO */
.terms-hero {
    position: relative;
    padding: 92px 0 84px;
    overflow: hidden;
    background:
        radial-gradient(circle at 86% 14%, rgba(37,99,235,.16), transparent 31%),
        radial-gradient(circle at 14% 86%, rgba(59,130,246,.09), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border-bottom: 1px solid #e6edf6;
}

.terms-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .30;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(15,23,42,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15,23,42,.04) 1px, transparent 1px);
    background-size: 42px 42px;
}

.terms-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, .72fr);
    gap: 70px;
    align-items: center;
}

.terms-eyebrow,
.terms-section-kicker,
.terms-sidebar-kicker,
.terms-bottom-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2563eb;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .15em;
}

.terms-eyebrow {
    margin-bottom: 18px;
}

.terms-eyebrow::before,
.terms-section-kicker::before,
.terms-sidebar-kicker::before,
.terms-bottom-kicker::before {
    content: "";
    width: 27px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.terms-hero-copy h1 {
    margin: 0;
    color: #0b1636;
    font-size: clamp(44px, 5.5vw, 70px);
    line-height: 1.02;
    letter-spacing: -.05em;
    font-weight: 800;
}

.terms-hero-copy > p {
    max-width: 680px;
    margin: 24px 0 0;
    color: #637188;
    font-size: 18px;
    line-height: 1.75;
}

.terms-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.terms-btn {
    min-height: 50px;
    padding: 0 22px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.terms-btn svg,
.terms-bottom-btn svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.terms-btn-primary {
    color: #ffffff;
    background: #2563eb;
    border: 1px solid #2563eb;
    box-shadow: 0 12px 28px rgba(37,99,235,.20);
}

.terms-btn-primary:hover {
    color: #ffffff;
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(37,99,235,.24);
}

.terms-btn-secondary {
    color: #17213c;
    background: #ffffff;
    border: 1px solid #dce5f1;
}

.terms-btn-secondary:hover {
    color: #2563eb;
    border-color: #b9cce9;
    transform: translateY(-2px);
}

/* HERO SUMMARY */
.terms-hero-card {
    border: 1px solid #dfe7f1;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255,255,255,.88);
    box-shadow: 0 24px 68px rgba(15,23,42,.10);
    backdrop-filter: blur(14px);
}

.terms-summary-top {
    min-height: 58px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid #edf2f7;
}

.terms-summary-badge {
    color: #17213c;
    font-size: 13px;
    font-weight: 800;
}

.terms-summary-status {
    padding: 6px 9px;
    border-radius: 999px;
    color: #2563eb;
    background: #eff6ff;
    font-size: 10px;
    font-weight: 800;
}

.terms-summary-list {
    padding: 8px 20px 20px;
}

.terms-summary-item {
    display: grid;
    grid-template-columns: 38px minmax(0,1fr);
    gap: 13px;
    padding: 16px 0;
    border-top: 1px solid #edf2f7;
}

.terms-summary-item:first-child {
    border-top: 0;
}

.terms-summary-item > span {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    color: #2563eb;
    background: #eff6ff;
    font-size: 10px;
    font-weight: 900;
}

.terms-summary-item strong {
    display: block;
    color: #16213c;
    font-size: 13px;
}

.terms-summary-item p {
    margin: 4px 0 0;
    color: #7b889b;
    font-size: 11px;
    line-height: 1.55;
}

/* MAIN */
.terms-main {
    padding: 96px 0 104px;
    background: #ffffff;
}

.terms-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

.terms-sidebar {
    position: sticky;
    top: 110px;
}

.terms-sidebar-card {
    border: 1px solid #e1e8f1;
    border-radius: 20px;
    padding: 22px;
    background: #fbfdff;
}

.terms-sidebar-kicker {
    margin-bottom: 18px;
}

.terms-nav {
    display: grid;
    gap: 5px;
}

.terms-nav a {
    padding: 9px 10px;
    border-radius: 9px;
    color: #64748b;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    transition: color .18s ease, background .18s ease;
}

.terms-nav a:hover {
    color: #2563eb;
    background: #eff6ff;
}

.terms-help-box {
    display: flex;
    gap: 11px;
    margin-top: 22px;
    padding: 15px;
    border-radius: 14px;
    background: #0f1b38;
    color: #ffffff;
}

.terms-help-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.08);
}

.terms-help-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.terms-help-box strong {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
}

.terms-help-box p {
    margin: 0;
    color: #b7c4d8;
    font-size: 9px;
    line-height: 1.55;
}

.terms-help-box a {
    display: inline-block;
    margin-top: 8px;
    color: #93c5fd;
    text-decoration: none;
    font-size: 9px;
    font-weight: 800;
}

/* CONTENT */
.terms-content-header {
    max-width: 760px;
    margin-bottom: 34px;
}

.terms-section-kicker {
    margin-bottom: 15px;
}

.terms-content-header h2 {
    margin: 0;
    color: #0b1636;
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.12;
    letter-spacing: -.04em;
    font-weight: 800;
}

.terms-content-header p {
    margin: 16px 0 0;
    color: #6d7b90;
    font-size: 15px;
    line-height: 1.8;
}

.terms-list {
    display: grid;
    gap: 14px;
}

.terms-card {
    scroll-margin-top: 110px;
    display: grid;
    grid-template-columns: 52px minmax(0,1fr);
    gap: 20px;
    padding: 26px;
    border: 1px solid #e3eaf3;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(15,23,42,.045);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.terms-card:hover {
    transform: translateY(-2px);
    border-color: #c7d7ee;
    box-shadow: 0 18px 42px rgba(15,23,42,.065);
}

.terms-number {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #2563eb;
    background: #eff6ff;
    font-size: 12px;
    font-weight: 900;
}

.terms-card-content h3 {
    margin: 2px 0 9px;
    color: #17213c;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 800;
}

.terms-card-content p {
    margin: 0;
    color: #66758a;
    font-size: 14px;
    line-height: 1.85;
}

.terms-card-content strong {
    color: #243149;
}

.terms-card-content a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 700;
}

.terms-card-content a:hover {
    text-decoration: underline;
}

/* BOTTOM CTA */
.terms-bottom-cta {
    margin-top: 28px;
    padding: 30px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    color: #ffffff;
    background:
        radial-gradient(circle at 90% 15%, rgba(96,165,250,.18), transparent 30%),
        linear-gradient(135deg, #0c1838, #15326f);
}

.terms-bottom-kicker {
    color: #8eb8ff;
    margin-bottom: 10px;
}

.terms-bottom-cta h3 {
    margin: 0;
    color: #ffffff;
    font-size: 24px;
    letter-spacing: -.02em;
}

.terms-bottom-cta p {
    max-width: 650px;
    margin: 8px 0 0;
    color: #b9c7dd;
    font-size: 12px;
    line-height: 1.65;
}

.terms-bottom-btn {
    flex: 0 0 auto;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #0f1b38;
    background: #ffffff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 850;
}

.terms-bottom-btn:hover {
    color: #2563eb;
}

/* RESPONSIVE */
@media (max-width: 1000px) {
    .terms-hero-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .terms-hero-card {
        max-width: 640px;
    }

    .terms-layout {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .terms-sidebar {
        position: static;
    }

    .terms-sidebar-card {
        display: grid;
        grid-template-columns: minmax(0,1fr) 250px;
        gap: 22px;
    }

    .terms-sidebar-kicker {
        grid-column: 1 / -1;
        margin-bottom: 0;
    }

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

    .terms-help-box {
        margin-top: 0;
    }
}

@media (max-width: 700px) {
    .terms-container {
        width: min(100% - 28px, 1180px);
    }

    .terms-hero {
        padding: 58px 0 56px;
    }

    .terms-hero-copy h1 {
        font-size: clamp(40px, 12vw, 54px);
    }

    .terms-hero-copy > p {
        font-size: 16px;
    }

    .terms-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .terms-btn {
        width: 100%;
    }

    .terms-main {
        padding: 68px 0 76px;
    }

    .terms-sidebar-card {
        display: block;
    }

    .terms-sidebar-kicker {
        margin-bottom: 16px;
    }

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

    .terms-help-box {
        margin-top: 20px;
    }

    .terms-card {
        grid-template-columns: 42px minmax(0,1fr);
        gap: 14px;
        padding: 20px 16px;
        border-radius: 15px;
    }

    .terms-number {
        width: 42px;
        height: 42px;
        border-radius: 11px;
    }

    .terms-card-content h3 {
        font-size: 16px;
    }

    .terms-card-content p {
        font-size: 13px;
    }

    .terms-bottom-cta {
        align-items: flex-start;
        flex-direction: column;
        padding: 24px 20px;
    }

    .terms-bottom-btn {
        width: 100%;
    }
}