/* Legal pages (terms, refund, privacy, contacts): same tokens as the site (style lock v2), editorial "paper" layout. */
:root {
  --ink: #2B0F25; --ink-2: #64445B; --paper: #FFF6F2; --blush: #FFDCEA; --hot: #FF4F9A; --lilac: #D9CCFF; --butter: #FFE066;
  --accent-text: #B8195F; --error: #B42318; --line-soft: rgb(43 15 37 / 0.25);
  --display: "Anton", Impact, sans-serif; --text: "Onest", system-ui, sans-serif;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --r-sm: 14px; --r-md: 22px; --r-pill: 999px; --stroke: 2.5px; --sh-sm: 3px 4px 0 var(--ink);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1); --dur-press: 120ms;
  --gutter: clamp(16px, 4.5vw, 64px);
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
body { background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--text); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.shell { width: 100%; max-width: calc(1180px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
input:not([type='checkbox']):not([type='radio']):focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }
.skip-link { position: absolute; left: var(--s4); top: -100px; background: var(--paper); border: var(--stroke) solid var(--ink); border-radius: var(--r-pill); padding: var(--s3) var(--s4); font-weight: 700; z-index: 10; }
.skip-link:focus { top: var(--s4); }

.top { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding-block: var(--s5); }
.logo svg { height: 52px; width: auto; display: block; }
.top-actions { display: flex; align-items: center; gap: var(--s4); }
.lang { display: flex; background: var(--blush); border: 2px solid var(--ink); border-radius: var(--r-pill); padding: 3px; }
.lang a { font: 700 13px/1 var(--text); text-decoration: none; padding: 8px 12px; border-radius: var(--r-pill); }
.lang [aria-current='page'] { background: var(--ink); color: var(--paper); }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 var(--s5); border-radius: var(--r-pill); border: var(--stroke) solid var(--ink); background: var(--hot); color: var(--ink); box-shadow: var(--sh-sm); font: 700 15px/1 var(--text); text-decoration: none; white-space: nowrap; transition: transform var(--dur-press) var(--ease-out), box-shadow var(--dur-press) var(--ease-out); }
.btn:active { transform: translate(3px, 4px); box-shadow: 0 0 0 var(--ink); }

.policy-main { padding-block: var(--s6) var(--s9); }
.policy-heading { max-width: 46em; display: flex; flex-direction: column; gap: var(--s4); }
.kick { font: 700 13px/1 var(--text); text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent-text); }
h1 { font: 400 clamp(52px, 7vw, 104px)/0.92 var(--display); text-transform: uppercase; }
html[lang='uk'] h1 { font: 800 clamp(36px, 5vw, 64px)/1.05 var(--text); text-transform: none; letter-spacing: -0.03em; }
.lede { font: 500 19px/1.55 var(--text); color: var(--ink-2); }
.policy-date { font-size: 14px; color: var(--ink-2); }

.tabs-nav { display: flex; flex-wrap: wrap; gap: var(--s2); margin-block: var(--s7) var(--s6); }
.tabs-nav a { font: 600 15px/1 var(--text); text-decoration: none; padding: 12px 18px; border-radius: var(--r-pill); border: 2px solid var(--ink); background: var(--blush); }
.tabs-nav [aria-current='page'] { background: var(--ink); color: var(--paper); }

.policy-layout { display: grid; grid-template-columns: 260px 1fr; gap: var(--s8); align-items: start; }
.policy-contents { position: sticky; top: var(--s5); display: flex; flex-direction: column; gap: var(--s3); }
.policy-contents nav { display: flex; flex-direction: column; gap: var(--s2); border-left: 2px solid var(--line-soft); }
.policy-contents nav a { font-size: 14.5px; line-height: 1.35; text-decoration: none; padding: 6px var(--s3); color: var(--ink-2); border-left: 2px solid transparent; margin-left: -2px; }
.policy-contents nav a:hover { color: var(--ink); border-left-color: var(--hot); }

.policy-body { max-width: 68ch; display: flex; flex-direction: column; gap: var(--s7); }
.policy-section { display: flex; flex-direction: column; gap: var(--s3); scroll-margin-top: var(--s5); }
.policy-section h2 { font: 800 26px/1.2 var(--text); letter-spacing: -0.025em; margin-bottom: var(--s2); }
.policy-section h3 { font: 700 18px/1.3 var(--text); margin-top: var(--s3); }
.policy-section ul, .policy-section ol { padding-left: var(--s5); display: flex; flex-direction: column; gap: var(--s2); }
.policy-section a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.policy-section strong { font-weight: 700; }

.seller-requisites { display: grid; grid-template-columns: 200px 1fr; gap: var(--s3) var(--s5); background: var(--blush); border: var(--stroke) solid var(--ink); border-radius: var(--r-md); padding: var(--s5); box-shadow: var(--sh-sm); }
.seller-requisites dt { color: var(--ink-2); font-size: 15px; }
.seller-requisites dd { font-weight: 600; overflow-wrap: anywhere; }
.policy-notice { background: var(--butter); border: 2px solid var(--ink); border-radius: var(--r-sm); padding: var(--s3) var(--s4); font-weight: 600; }
.seller-extra { color: var(--ink-2); }
.policy-email { align-self: flex-start; }

.foot { background: var(--ink); color: var(--paper); }
.foot-inner { display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; padding-block: var(--s6); font-size: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: var(--s5); }
.foot a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 860px) {
  body { font-size: 16px; }
  .logo svg { height: 36px; }
  .top { gap: var(--s3); }
  .top-actions { gap: var(--s2); }
  .lang a { padding: 7px 9px; font-size: 12px; }
  .btn { height: 38px; padding: 0 var(--s3); font-size: 13px; }
  .policy-main { padding-top: var(--s4); }
  .tabs-nav { margin-block: var(--s6) var(--s5); }
  .tabs-nav a { padding: 10px 14px; font-size: 14px; }
  .policy-layout { grid-template-columns: 1fr; gap: var(--s6); }
  .policy-contents { position: static; background: var(--blush); border: 2px solid var(--ink); border-radius: var(--r-sm); padding: var(--s4); }
  .policy-section h2 { font-size: 22px; }
  .seller-requisites { grid-template-columns: 1fr; gap: 2px; padding: var(--s4); }
  .seller-requisites dd { margin-bottom: var(--s3); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (max-width: 360px) { .top { flex-wrap: wrap; } }
