:root {
    color-scheme: light;
    --terms-ink: #243d36;
    --terms-green: #075c49;
    --terms-muted: #63746d;
    --terms-line: #dce5de;
}
*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 170px;
}
body.terms-design {
    margin: 0;
    background: radial-gradient(ellipse at 0 0, #dfebe0, transparent 45%), #f4f6f0;
    color: var(--terms-ink);
    font:
        400 15px/1.85 "Segoe UI",
        Arial,
        sans-serif;
}
.terms-design [hidden] {
    display: none !important;
}
.terms-page {
    width: min(1060px, calc(100% - 36px));
    margin: clamp(20px, 4vw, 60px) auto;
}
.terms-card {
    padding: 0;
    min-width: 0;
}
.terms-intro {
    position: relative;
    padding: clamp(28px, 5vw, 60px);
    border: 1px solid #2e6a54;
    border-radius: 25px;
    color: #fff;
    background: linear-gradient(120deg, #103b2f, #0d5c48);
    box-shadow: 0 15px 40px rgb(21 58 37 / 10%);
}
.terms-intro h1 {
    margin: 0 0 18px;
    max-width: 750px;
    font:
        400 clamp(34px, 5vw, 58px)/1.12 Georgia,
        serif;
    letter-spacing: -0.035em;
    text-wrap: balance;
}
.terms-intro .subtitle {
    margin: 0 0 30px;
    max-width: 960px;
    color: #d0dfd0;
    font-size: clamp(14px, 1.6vw, 17px);
    line-height: 1.7;
}
.terms-intro .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 25px;
    padding-top: 23px;
    border-top: 1px solid #47715b;
}
.terms-intro .meta p {
    margin: 0;
    color: #c5d8c6;
    font-size: 11px;
}
.terms-intro .meta strong {
    color: #e4d6a1;
    font-weight: 650;
}
.terms-intro .meta a {
    color: #fff0c4;
    overflow-wrap: anywhere;
}
.terms-tools {
    position: sticky;
    top: 12px;
    z-index: 10;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    margin: 24px 0;
    padding: 20px 23px;
    border: 1px solid #ccdccc;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 8px 28px rgb(28 64 36 / 8%);
}
.terms-search-field {
    min-width: 0;
}
.terms-search-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--terms-green);
    font-size: 12px;
    font-weight: 750;
}
.terms-search-input {
    display: flex;
    align-items: stretch;
    gap: 8px;
}
#terms-search {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid #ccdbcb;
    border-radius: 10px;
    background: #f8faf5;
    color: var(--terms-ink);
    font:
        400 16px/1.5 "Segoe UI",
        Arial,
        sans-serif;
    outline: none;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}
#terms-search:focus {
    border-color: #3a8260;
    box-shadow: 0 0 0 3px rgb(7 92 73 / 10%);
    background: #fff;
}
.terms-tools button {
    min-height: 42px;
    padding: 9px 13px;
    border: 1px solid #d5dfd0;
    border-radius: 9px;
    color: #345840;
    background: #f0f5e9;
    font:
        650 12px/1.5 "Segoe UI",
        Arial,
        sans-serif;
    cursor: pointer;
    transition: background 0.2s;
}
.terms-tools button:hover {
    background: #dfebd8;
}
#terms-search-help {
    margin: 6px 0 0;
    color: #7a887c;
    font-size: 10px;
    line-height: 1.6;
}
.terms-search-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 9px;
}
#terms-results {
    color: #5b705d;
    font-size: 11px;
}
#terms-print {
    background: var(--terms-green);
    border-color: var(--terms-green);
    color: #fff;
}
#terms-print:hover {
    background: #044936;
}
.content-table {
    margin: 25px 0 30px;
    border: 1px solid var(--terms-line);
    border-radius: 17px;
    background: #fff;
}
.content-table > summary {
    padding: 20px 25px;
    color: var(--terms-green);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}
.content-table > summary::marker {
    color: #7d965b;
}
.content-table[open] > summary {
    border-bottom: 1px solid #e6ece0;
}
.content-table nav {
    max-height: 360px;
    overflow: auto;
    padding: 20px 24px;
    scrollbar-width: thin;
    scrollbar-color: #b6c6aa #f5f8ef;
}
.content-table ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 35px;
    margin: 0;
    padding-left: 23px;
}
.content-table li {
    padding-left: 3px;
    color: #8a997d;
    font-size: 12px;
}
.terms-design a {
    color: var(--terms-green);
    text-underline-offset: 4px;
    overflow-wrap: anywhere;
}
.content-table a {
    text-decoration: none;
    line-height: 1.6;
}
.content-table a:hover {
    text-decoration: underline;
}
.terms-section {
    position: relative;
    padding: clamp(24px, 4vw, 45px);
    margin: 0 0 20px;
    border: 1px solid var(--terms-line);
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 3px 13px rgb(25 63 32 / 2%);
    scroll-margin-top: 180px;
    overflow-wrap: anywhere;
}
.terms-section:target {
    border-color: #84a879;
    box-shadow: 0 0 0 3px rgb(67 119 70 / 10%);
}
.terms-section h2 {
    margin: 0 0 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e1e9db;
    color: #164c37;
    font-size: clamp(21px, 2.4vw, 29px);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.025em;
    text-wrap: balance;
}
.terms-section h3 {
    margin: 30px 0 16px;
    color: #315d40;
    font-size: clamp(17px, 1.8vw, 21px);
    line-height: 1.4;
    font-weight: 700;
}
.terms-section h4 {
    margin: 25px 0 13px;
    color: #526b47;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 700;
}
.terms-section p {
    margin: 0 0 17px;
}
.terms-section :is(ul, ol) {
    padding-left: 24px;
    margin: 15px 0 23px;
}
.terms-section li {
    padding-left: 5px;
    margin-bottom: 10px;
}
.terms-section li::marker {
    color: #78965b;
    font-weight: 700;
}
.terms-section li :is(ul, ol) {
    margin-top: 10px;
}
.terms-section strong {
    font-weight: 700;
}
.terms-section table {
    display: block;
    width: 100%;
    overflow-x: auto;
    margin: 22px 0;
    border-collapse: collapse;
    font-size: 13px;
}
.terms-section :is(th, td) {
    padding: 12px;
    border: 1px solid var(--terms-line);
    text-align: left;
}
.terms-section th {
    background: #edf4e5;
    color: #315c38;
}
.terms-section img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}
.terms-section .contact {
    padding: 20px;
    border-left: 3px solid #a5b97f;
    border-radius: 0 12px 12px 0;
    background: #f4f8ee;
}
.terms-section .contact p:last-child {
    margin-bottom: 0;
}
.terms-empty {
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #e3d3ad;
    border-radius: 13px;
    background: #fffbef;
    color: #77613d;
}
.to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 20;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #164c37;
    color: #fff !important;
    text-decoration: none;
    font-size: 23px;
    box-shadow: 0 5px 15px rgb(0 0 0 / 12%);
}
.terms-design :is(a, button, summary):focus-visible {
    outline: 3px solid #a98524;
    outline-offset: 4px;
}
@media (max-width: 700px) {
    html {
        scroll-padding-top: 20px;
    }
    .terms-page {
        width: calc(100% - 24px);
    }
    .terms-intro {
        padding: 28px 23px;
        border-radius: 20px;
    }
    .terms-intro .meta {
        flex-direction: column;
        gap: 9px;
    }
    .terms-tools {
        position: static;
        grid-template-columns: minmax(0, 1fr);
        padding: 17px;
        gap: 13px;
    }
    .terms-search-summary {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .content-table ol {
        grid-template-columns: minmax(0, 1fr);
    }
    .terms-section {
        padding: 26px 21px;
        scroll-margin-top: 20px;
        font-size: 14px;
        line-height: 1.85;
    }
    .terms-section h2 {
        overflow-wrap: anywhere;
    }
    .to-top {
        right: 13px;
        bottom: 13px;
    }
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}
@media print {
    @page {
        margin: 18mm;
    }
    body.terms-design {
        background: #fff;
        font-size: 10pt;
        color: #000;
    }
    .terms-page {
        width: 100%;
        margin: 0;
    }
    .terms-intro {
        padding: 0 0 20px;
        border: 0;
        border-radius: 0;
        background: #fff;
        color: #000;
        box-shadow: none;
    }
    .terms-intro :is(.subtitle, .meta p, .meta strong, .meta a) {
        color: #333;
    }
    .terms-tools,
    .to-top,
    .terms-empty,
    .content-table {
        display: none !important;
    }
    .terms-section,
    .terms-section[hidden] {
        display: block !important;
        padding: 15px 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        margin: 0;
    }
    .terms-section :is(h2, h3, h4) {
        break-after: avoid;
    }
    .terms-section p,
    .terms-section li {
        orphans: 3;
        widows: 3;
    }
    .terms-section table {
        display: table;
        font-size: 9pt;
    }
}
.terms-page {
    width: calc(100% - 40px);
    max-width: 1500px;
}

@media (max-width: 700px) {
    .terms-page {
        width: calc(100% - 24px);
    }
}
