.ipt-terms {
    --ipt-terms-accent: #173a67;
    --ipt-terms-ink: #122033;
    --ipt-terms-muted: #647080;
    --ipt-terms-bg: #faf9f6;
    --ipt-terms-card: #fff;
    --ipt-terms-line: rgba(18, 32, 51, 0.13);
    --ipt-terms-warm: #f2ebe2;
    --ipt-terms-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
    width: 100vw;
    max-width: 100vw;
    margin-inline: calc(50% - 50vw);
    overflow: clip;
    background: var(--ipt-terms-bg);
    color: var(--ipt-terms-ink);
    font-family: inherit;
}

.ct-container-full:has(.elementor-widget-ipt_terms_of_service),
.ct-container-full:has(.elementor-widget-ipt_privacy_policy) {
    padding-block: 0;
}

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

.ipt-terms button,
.ipt-terms a {
    font: inherit;
}

.ipt-terms button {
    appearance: none;
    box-shadow: none;
}

.ipt-terms-shell {
    width: min(1220px, calc(100% - 64px));
    margin-inline: auto;
}

.ipt-terms-hero {
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--ipt-terms-line);
    background:
        radial-gradient(circle at 88% 22%, rgba(209, 222, 235, 0.62), rgba(209, 222, 235, 0) 26%),
        radial-gradient(circle at 72% 86%, rgba(237, 221, 199, 0.7), rgba(237, 221, 199, 0) 28%),
        linear-gradient(135deg, #fbfaf7 0%, #f7f5f0 58%, #f1f4f5 100%);
}

.ipt-terms-hero::before,
.ipt-terms-hero::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(23, 58, 103, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.ipt-terms-hero::before {
    width: 350px;
    height: 350px;
    top: -190px;
    right: 7%;
}

.ipt-terms-hero::after {
    width: 190px;
    height: 190px;
    right: 26%;
    bottom: -135px;
}

.ipt-terms-hero .ipt-terms-shell {
    position: relative;
    z-index: 1;
    padding-block: 74px 64px;
}

.ipt-terms-eyebrow,
.ipt-terms-section-label,
.ipt-terms-sidebar-label {
    display: block;
    color: var(--ipt-terms-accent);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.18em;
    line-height: 1.35;
    text-transform: uppercase;
}

.ipt-terms-hero h1 {
    max-width: 800px;
    margin: 13px 0 18px;
    color: var(--ipt-terms-ink);
    font-family: var(--ipt-terms-serif);
    font-size: clamp(54px, 6vw, 82px);
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: 0.98;
}

.ipt-terms-subtitle {
    max-width: 610px;
    margin: 0;
    color: #394a5d;
    font-size: clamp(17px, 1.5vw, 20px);
    line-height: 1.6;
}

.ipt-terms-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 30px;
    margin-top: 28px;
}

.ipt-terms-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--ipt-terms-muted);
    font-size: 13px;
}

.ipt-terms-meta svg,
.ipt-terms-print-card > svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ipt-terms-meta strong {
    color: var(--ipt-terms-ink);
}

.ipt-terms-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: clamp(50px, 7vw, 96px);
    align-items: start;
    padding-block: 72px 90px;
}

.ipt-terms-sidebar {
    position: sticky;
    top: 94px;
    min-width: 0;
}

.ipt-terms-contents-toggle {
    display: none;
}

.ipt-terms-contents {
    padding-bottom: 0;
    border-bottom: 0;
}

.ipt-terms-contents ol {
    max-height: min(58vh, 590px);
    display: grid;
    gap: 2px;
    margin: 13px 0 0;
    padding: 0 8px 0 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: rgba(23, 58, 103, 0.28) transparent;
    scrollbar-width: thin;
    list-style: none;
}

.ipt-terms-contents a {
    position: relative;
    display: grid;
    grid-template-columns: 25px minmax(0, 1fr);
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    color: #596575;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    transition: color 160ms ease, background-color 160ms ease;
}

.ipt-terms-contents a > span:first-child {
    color: #89919b;
    font-variant-numeric: tabular-nums;
}

.ipt-terms-contents a:hover,
.ipt-terms-contents a:focus-visible,
.ipt-terms-contents a.is-active {
    background: var(--ipt-terms-warm);
    color: var(--ipt-terms-ink);
}

.ipt-terms-contents a.is-active > span:first-child {
    color: var(--ipt-terms-accent);
}

.ipt-terms-print-card {
    display: none;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 14px;
    margin-top: 22px;
    padding: 20px;
    border: 1px solid var(--ipt-terms-line);
    border-radius: 14px;
    background: #fff;
}

.ipt-terms-print-card > svg {
    width: 26px;
    height: 26px;
    color: #9c5b32;
}

.ipt-terms-print-card strong {
    font-family: var(--ipt-terms-serif);
    font-size: 16px;
}

.ipt-terms-print-card p {
    margin: 5px 0 0;
    color: var(--ipt-terms-muted);
    font-size: 11px;
    line-height: 1.5;
}

.ipt-terms-print-card button {
    grid-column: 1 / -1;
    min-height: 40px !important;
    padding: 9px 14px !important;
    border: 1px solid #8f4d28 !important;
    border-radius: 8px !important;
    background: #8f4d28 !important;
    color: #fff !important;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    box-shadow: none !important;
}

.ipt-terms-print-card button:hover,
.ipt-terms-print-card button:focus-visible {
    background: #743c20 !important;
}

.ipt-terms-article {
    width: min(100%, 830px);
}

.ipt-terms-section a {
    color: var(--ipt-terms-accent);
    font-weight: 700;
    text-underline-offset: 3px;
}

.ipt-terms-glance {
    margin-bottom: 62px;
    padding: 34px;
    border: 1px solid rgba(23, 58, 103, 0.09);
    border-radius: 18px;
    background: #f3f5f2;
}

.ipt-terms-glance > h2 {
    margin: 6px 0 8px;
    font-family: var(--ipt-terms-serif);
    font-size: 38px;
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.ipt-terms-glance-note {
    max-width: 620px;
    margin: 0;
    color: var(--ipt-terms-muted);
    font-size: 13px;
    line-height: 1.6;
}

.ipt-terms-glance-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.ipt-terms-glance-grid article {
    position: relative;
    min-height: 190px;
    padding: 24px;
    overflow: hidden;
    border: 1px solid rgba(18, 32, 51, 0.1);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.88);
}

.ipt-terms-glance-grid article:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    min-height: 0;
}

.ipt-terms-glance-grid article > span {
    position: absolute;
    top: 10px;
    right: 16px;
    color: rgba(23, 58, 103, 0.1);
    font-family: var(--ipt-terms-serif);
    font-size: 44px;
    font-weight: 600;
    line-height: 1;
}

.ipt-terms-glance-grid h3 {
    position: relative;
    margin: 0 0 9px;
    padding-right: 34px;
    font-family: var(--ipt-terms-serif);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
}

.ipt-terms-glance-grid p {
    position: relative;
    margin: 0;
    color: #5a6675;
    font-size: 12px;
    line-height: 1.65;
}

.ipt-terms-section {
    position: relative;
    margin-bottom: 54px;
    padding: 0 0 54px 74px;
    border-bottom: 1px solid var(--ipt-terms-line);
    scroll-margin-top: 106px;
}

.ipt-terms-section:last-child {
    margin-bottom: 0;
    border-bottom: 0;
}

.ipt-terms-section-number {
    position: absolute;
    top: 5px;
    left: 0;
    color: rgba(23, 58, 103, 0.24);
    font-family: var(--ipt-terms-serif);
    font-size: 27px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.ipt-terms-section > h2 {
    margin: 0 0 22px;
    color: var(--ipt-terms-ink);
    font-family: var(--ipt-terms-serif);
    font-size: clamp(29px, 3vw, 36px);
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.ipt-terms-section-body h3 {
    margin: 31px 0 10px;
    color: var(--ipt-terms-ink);
    font-family: var(--ipt-terms-serif);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
}

.ipt-terms-section-body h4 {
    margin: 25px 0 9px;
    color: var(--ipt-terms-ink);
    font-size: 16px;
    font-weight: 700;
}

.ipt-terms-section-body p,
.ipt-terms-section-body li {
    color: #435063;
    font-size: 14px;
    line-height: 1.78;
}

.ipt-terms-section-body p {
    margin: 0 0 14px;
}

.ipt-terms-section-body ul {
    display: grid;
    gap: 7px;
    margin: 12px 0 21px;
    padding: 0;
    list-style: none;
}

.ipt-terms-section-body li {
    position: relative;
    padding-left: 21px;
}

.ipt-terms-section-body li::before {
    content: "";
    position: absolute;
    top: 0.72em;
    left: 2px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ipt-terms-accent);
}

.ipt-terms-section-body strong {
    color: var(--ipt-terms-ink);
}

@media (max-width: 960px) {
    .ipt-terms-hero {
        min-height: 0;
    }

    .ipt-terms-hero .ipt-terms-shell {
        padding-block: 62px 48px;
    }

    .ipt-terms-layout {
        grid-template-columns: 1fr;
        gap: 34px;
        padding-top: 42px;
    }

    .ipt-terms-sidebar {
        position: relative;
        top: auto;
        z-index: 4;
    }

    .ipt-terms-contents-toggle {
        width: 100% !important;
        min-height: 52px !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px !important;
        border: 1px solid var(--ipt-terms-line) !important;
        border-radius: 11px !important;
        background: #fff !important;
        color: var(--ipt-terms-ink) !important;
        cursor: pointer;
        font-size: 13px;
        font-weight: 750;
        box-shadow: none !important;
    }

    .ipt-terms-contents-toggle svg {
        width: 22px;
        height: 22px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.6;
        transition: transform 160ms ease;
    }

    .ipt-terms-contents-toggle[aria-expanded="true"] svg {
        transform: rotate(180deg);
    }

    .ipt-terms-contents {
        display: none;
        margin-top: 8px;
        padding: 16px;
        border: 1px solid var(--ipt-terms-line);
        border-radius: 11px;
        background: #fff;
        box-shadow: 0 14px 38px rgba(25, 37, 51, 0.08);
    }

    .ipt-terms-sidebar.is-open .ipt-terms-contents {
        display: block;
    }

    .ipt-terms-contents ol {
        max-height: 390px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ipt-terms-print-card {
        display: none;
    }

    .ipt-terms-article {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .ipt-terms-shell {
        width: min(100% - 28px, 540px);
    }

    .ipt-terms-hero .ipt-terms-shell {
        padding-block: 48px 38px;
    }

    .ipt-terms-hero h1 {
        font-size: clamp(46px, 14vw, 62px);
    }

    .ipt-terms-subtitle {
        font-size: 15px;
        line-height: 1.55;
    }

    .ipt-terms-meta {
        display: grid;
        gap: 10px;
        margin-top: 22px;
    }

    .ipt-terms-layout {
        gap: 26px;
        padding-block: 28px 50px;
    }

    .ipt-terms-contents ol {
        grid-template-columns: 1fr;
    }

    .ipt-terms-glance {
        margin-bottom: 48px;
        padding: 25px 20px;
    }

    .ipt-terms-glance > h2 {
        font-size: 34px;
    }

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

    .ipt-terms-glance-grid article,
    .ipt-terms-glance-grid article:last-child:nth-child(odd) {
        min-height: 0;
        grid-column: auto;
        padding: 21px;
    }

    .ipt-terms-section {
        margin-bottom: 42px;
        padding: 0 0 42px;
    }

    .ipt-terms-section-number {
        position: static;
        margin-bottom: 6px;
        font-size: 18px;
    }

    .ipt-terms-section > h2 {
        margin-bottom: 18px;
        font-size: 29px;
    }

    .ipt-terms-section-body h3 {
        font-size: 20px;
    }

    .ipt-terms-section-body p,
    .ipt-terms-section-body li {
        font-size: 13px;
        line-height: 1.72;
    }

}

@media print {
    #header,
    .ct-header,
    .site-footer,
    .ipt-terms-sidebar,
    [class*="chat"],
    [class*="cookie"] {
        display: none !important;
    }

    .ipt-terms,
    .ipt-terms-hero,
    .ipt-terms-glance {
        background: #fff !important;
        box-shadow: none !important;
    }

    .ipt-terms {
        width: 100%;
        max-width: none;
        margin: 0;
        color: #000;
    }

    .ipt-terms-shell {
        width: 100%;
        max-width: none;
    }

    .ipt-terms-hero {
        min-height: 0;
    }

    .ipt-terms-hero::before,
    .ipt-terms-hero::after {
        display: none;
    }

    .ipt-terms-hero .ipt-terms-shell {
        padding: 0 0 30px;
    }

    .ipt-terms-hero h1 {
        font-size: 42px;
    }

    .ipt-terms-layout {
        display: block;
        padding: 32px 0 0;
    }

    .ipt-terms-article {
        width: 100%;
        max-width: none;
    }

    .ipt-terms-section {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .ipt-terms a {
        color: inherit !important;
        text-decoration: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ipt-terms *,
    .ipt-terms *::before,
    .ipt-terms *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
