/* Terms in the Home style: a signed sheet in the hero, the short version as tilted cards on a band, calmer full terms. Loaded on terms.html only. */
.page-hero.ph-fan { padding-block: 108px 72px; overflow: hidden; }
.ph-fan .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.ph-fan .eyebrow { display: inline-block; padding: 6px 12px; border-radius: 8px; rotate: -2.5deg; background: var(--green); color: var(--navy); letter-spacing: 0.12em; }
.ph-fan h1 { margin-top: 18px; line-height: 1.05; }
.ph-fan .ph-text p { font-size: 1.15rem; }
.doc { position: relative; justify-self: center; width: min(290px, 100%); padding: 30px 22px 22px; border-radius: 10px; background: #fff; color: var(--navy); rotate: 4deg; box-shadow: 0 28px 48px rgba(10,15,46,0.4); transition: rotate .5s cubic-bezier(.3,1.8,.5,1); }
.doc:hover { rotate: 1deg; }
.doc-clip { position: absolute; top: -14px; left: 50%; width: 90px; height: 26px; margin-left: -45px; border-radius: 8px; background: #c9cfe8; border: 3px solid #8e97c4; }
.doc-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 2px dashed #e1e5f6; }
.doc-head b { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); }
.doc-head .tk-logo { background: var(--blue); padding: 5px 9px; border-radius: 6px; }
.doc ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 9px; }
.doc li { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.92rem; }
.doc li::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 6px; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230a0f2e' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; }
.doc-sign { margin-top: 18px; display: flex; align-items: flex-end; gap: 10px; }
.doc-sign small { font-size: 0.62rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #6a7194; }
.doc-sign span { flex: 1; font-size: 2rem; line-height: 1; color: var(--blue); border-bottom: 2px solid var(--navy); padding: 0 0 2px 8px; }
.page-hero .doc-stamp { position: absolute; right: 14px; bottom: 50px; margin: 0; padding: 4px 10px; border: 3px solid #18a957; border-radius: 8px; color: #18a957; font-weight: 800; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; rotate: -14deg; background: rgba(255,255,255,0.85); }

.tm .sticker { display: inline-block; width: fit-content; padding: 6px 12px; border-radius: 8px; rotate: -2.5deg; background: var(--green); color: var(--navy); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.tm-short { background: var(--navy); color: #fff; padding-block: 80px 90px; }
.tm-short h2 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); }
.tm-short .tl-note { margin: 8px 0 0; color: #c9d1ff; font-size: 1rem; }
.tm-short .tl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.tm-short .tl-card { display: grid; gap: 6px; align-content: start; padding: 20px 20px 22px; border-radius: 20px; border: 0; background: #fff; color: var(--navy); box-shadow: 0 18px 34px rgba(0,0,0,0.35); rotate: -1.5deg; transition: rotate .45s cubic-bezier(.3,1.8,.5,1), translate .25s; }
.tm-short .tl-card:nth-child(3n+2) { background: var(--green); rotate: 1.5deg; }
.tm-short .tl-card:nth-child(3n) { background: var(--blue); color: #fff; rotate: -0.5deg; }
.tm-short .tl-card:hover { rotate: 0deg; translate: 0 -5px; color: inherit; }
.tm-short .tl-card:nth-child(3n):hover { color: #fff; }
.tm-short .tl-card b { font-size: 1.15rem; font-weight: 800; }
.tm-short .tl-card span { color: inherit; opacity: 0.82; font-size: 0.93rem; line-height: 1.5; }
.tm-short .tl-card small { width: fit-content; margin: 0 0 4px; padding: 3px 9px; border-radius: 999px; background: var(--navy); color: var(--green); font-size: 0.72rem; font-weight: 800; }
.tm-short .tl-card:nth-child(3n) small { background: #fff; color: var(--blue); }

/* Full terms: twelve sections you open one at a time */
.terms-page { padding-block: 72px 88px; }
.terms-wrap { max-width: 880px; }
.terms-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-bottom: 26px; }
.terms-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); letter-spacing: -0.02em; }
.terms-head p { margin-top: 8px; max-width: 34em; color: var(--muted); font-size: 0.98rem; }
.terms-tools { display: flex; gap: 18px; }
#terms-list { display: grid; gap: 10px; }
.tm .tsec { padding: 0; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); scroll-margin-top: 90px; transition: box-shadow .2s; }
.tm .tsec[open] { box-shadow: inset 0 0 0 2px var(--green); }
.tsec summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none; border-radius: 18px; }
.tsec summary::-webkit-details-marker { display: none; }
.tsec summary:hover .ts-t { color: var(--link); }
.tsec summary:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.tsec .tnum { display: inline-grid; place-items: center; min-width: 42px; height: 30px; padding: 0 8px; border-radius: 8px; background: var(--green); color: var(--navy); font-size: 0.82rem; font-weight: 800; rotate: -3deg; }
.tsec:nth-child(3n+2) .tnum { background: var(--blue); color: #fff; } .tsec:nth-child(3n) .tnum { background: var(--navy); color: var(--green); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2); }
.ts-t { font-size: 1.15rem; font-weight: 800; line-height: 1.3; color: var(--fg); }
.ts-n { font-size: 0.8rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.ts-chev { width: 30px; height: 30px; border-radius: 50%; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%231a3eec' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; box-shadow: inset 0 0 0 1px var(--line); transition: rotate .25s; }
.tsec[open] .ts-chev { rotate: 180deg; background-color: var(--green); }
.tm .tsec { border: 0; }
.tm .tsec summary::after { content: none; }
.tm .tsec .clauses { display: block; max-width: none; margin: 0 20px; padding: 4px 0 14px; border-top: 2px dashed var(--line); color: var(--fg); font-size: inherit; }
.tm .tsec .clauses > li:last-child { border-bottom: 0; }
.eu-note { border-radius: 20px; margin-top: 28px; }

@media (max-width: 1000px) { .tm-short .tl-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .ph-fan .wrap { grid-template-columns: 1fr; gap: 30px; } .doc { width: min(260px, 86%); } }
@media (max-width: 620px) { .tm-short { padding-block: 60px 68px; } .tm-short .tl-grid { grid-template-columns: 1fr; } .tsec summary { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; padding: 14px; } .ts-n { display: none; } .ts-t { font-size: 1.02rem; } .tm .tsec .clauses { margin: 0 14px; } .terms-page { padding-block: 52px 64px; } }
@media print { .ts-chev, .terms-tools, .terms-head .sticker { display: none !important; } .tm .tsec { box-shadow: none; background: none; } .doc, .tm-short .sticker { display: none !important; } .tm-short { background: none; color: #000; padding: 0 0 12px; } .tm-short h2 { color: #000; } .tm-short .tl-card { box-shadow: none; rotate: 0deg; border: 1px solid #ccc; background: none !important; color: #000 !important; } }
@media (prefers-reduced-motion: reduce) { .doc, .tm-short .tl-card { transition: none; } }
.doc { padding-bottom: 64px; }
.page-hero .doc-stamp { bottom: 16px; right: 18px; rotate: -8deg; }
