/* Peaceful World Legal v2 — scoped Tilda direct-DOM release
   Council adjudication 2026-09-25 · Design System v0.3.7 semantics */
#pw-legal{
  --pw-bg:#fafaf7;
  --pw-surface:#ffffff;
  --pw-ink:#1e1f1c;
  --pw-muted:#67665f;
  --pw-subtle:#74726a;
  --pw-line:#e7e3d9;
  --pw-dark:#1f201e;
  --pw-line-on-dark:#4b4c47;
  --pw-on-dark:#f5f3ec;
  --pw-on-dark-muted:#c6c4bd;
  --pw-on-dark-subtle:#a9aaa4;
  --pw-fg:var(--pw-ink);
  --pw-fg-muted:var(--pw-muted);
  --pw-fg-subtle:var(--pw-subtle);
  --pw-rule:var(--pw-line);
  --pw-focus:var(--pw-ink);
  --pw-link:var(--pw-ink);
  --pw-font-sans:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  --pw-type-body:16px;
  --pw-track-display:-0.060em;
  --pw-track-heading:-0.045em;
  --pw-track-title:-0.030em;
  --pw-content-max:1160px;
  --pw-gutter:20px;
  --pw-gutter-mobile:14px;
  --pw-motion-quick:150ms;
  --pw-motion-standard:220ms;
  --pw-ease:ease;
  display:block;
  background:var(--pw-bg);
  color:var(--pw-ink);
  font-family:var(--pw-font-sans);
  font-size:var(--pw-type-body);
  -webkit-font-smoothing:antialiased;
}
#pw-legal[lang|="en"]{
  --pw-track-display:-0.060em;
  --pw-track-heading:-0.045em;
  --pw-track-title:-0.030em;
}
#pw-legal[lang|="ru"]{
  --pw-track-display:-0.010em;
  --pw-track-heading:-0.008em;
  --pw-track-title:-0.006em;
}
#pw-legal [lang|="et"]{
  --pw-track-display:-0.060em;
  --pw-track-heading:-0.045em;
  --pw-track-title:-0.030em;
}
#pw-legal,
#pw-legal *{box-sizing:border-box}
#pw-legal a{color:inherit}
#pw-legal .pw-surface-dark,
#pw-legal [data-pw-surface="dark"]{
  background:var(--pw-dark);
  color:var(--pw-on-dark);
  --pw-fg:var(--pw-on-dark);
  --pw-fg-muted:var(--pw-on-dark-muted);
  --pw-fg-subtle:var(--pw-on-dark-subtle);
  --pw-rule:var(--pw-line-on-dark);
  --pw-focus:var(--pw-on-dark);
  --pw-link:var(--pw-on-dark);
}

/* Stable section-header geometry, scoped for Tilda direct DOM. */
#pw-legal .pw-section-head{
  display:grid;
  grid-template-columns:60px minmax(0,1fr) minmax(0,1fr);
  gap:18px;
  align-items:start;
}
#pw-legal .pw-section-head>*{min-width:0}
#pw-legal .pw-section-head>.pw-section-desc{
  justify-self:end;
  max-width:520px;
  overflow-wrap:break-word;
}
#pw-legal .pw-section-head>h2{overflow-wrap:break-word}

/* Stable action pill v0.3.7, scoped. */
#pw-legal .pw-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-height:44px;
  padding:11px 15px;
  border-radius:999px;
  font-size:13px;
  font-weight:700;
  border:1px solid var(--pw-btn-border,var(--pw-line));
  background:var(--pw-btn-bg,var(--pw-surface));
  color:var(--pw-btn-fg,var(--pw-ink));
  text-decoration:none;
  transition:
    transform var(--pw-motion-quick) var(--pw-ease),
    background var(--pw-motion-quick) var(--pw-ease),
    border-color var(--pw-motion-quick) var(--pw-ease),
    color var(--pw-motion-quick) var(--pw-ease);
}
#pw-legal .pw-btn[data-pw-action="primary"]{
  --pw-btn-bg:var(--pw-ink);
  --pw-btn-fg:var(--pw-surface);
  --pw-btn-border:var(--pw-ink);
}
#pw-legal .pw-btn:hover{transform:translateY(-1px)}
#pw-legal .pw-btn>*{min-width:0}

#pw-legal :where(a,button,summary,[tabindex]):focus-visible{
  outline:2px solid var(--pw-focus);
  outline-offset:3px;
}

@media(max-width:900px){
  #pw-legal .pw-section-head{grid-template-columns:46px minmax(0,1fr)}
  #pw-legal .pw-section-head>.pw-section-desc{grid-column:2;justify-self:start}
}
@media(max-width:620px){
  #pw-legal{--pw-gutter:var(--pw-gutter-mobile)}
  #pw-legal .pw-section-head{grid-template-columns:1fr;gap:7px}
  #pw-legal .pw-section-head>.pw-section-desc{grid-column:1}
}
@media(prefers-reduced-motion:reduce){
  #pw-legal,
  #pw-legal *,
  #pw-legal *::before,
  #pw-legal *::after{
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    animation-delay:0s!important;
    transition-duration:.01ms!important;
    transition-delay:0s!important;
    scroll-behavior:auto!important;
  }
}


#pw-legal .pw-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#pw-legal{position:relative}
#pw-legal .pw-wrap{width:min(var(--pw-content-max),calc(100% - (var(--pw-gutter) * 2)));margin:0 auto}

#pw-legal .pw-hero{padding:138px 0 96px;border-bottom:1px solid var(--pw-line)}
#pw-legal .pw-eyebrow,#pw-legal .pw-card-kicker,#pw-legal .pw-dark-kicker,#pw-legal .pw-close-kicker{font-size:11px;line-height:1.3;font-weight:800;letter-spacing:.13em;text-transform:uppercase}
#pw-legal .pw-eyebrow{color:var(--pw-muted);margin-bottom:28px}
#pw-legal .pw-hero-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);gap:72px;align-items:end}
#pw-legal h1,#pw-legal h2,#pw-legal h3,#pw-legal p{margin-top:0}
#pw-legal h1{margin-bottom:0;font-size:clamp(58px,7.7vw,104px);line-height:.94;letter-spacing:var(--pw-track-display);font-weight:760;max-width:800px}
#pw-legal .pw-lead{font-size:20px;line-height:1.55;color:var(--pw-muted);max-width:580px;margin-bottom:24px}
#pw-legal .pw-jump{display:inline-flex;gap:8px;align-items:center;text-decoration:none;font-size:14px;font-weight:720}

#pw-legal .pw-section{padding:94px 0;border-bottom:1px solid var(--pw-line)}
#pw-legal .pw-section-head{margin-bottom:38px}
#pw-legal .pw-no{font-size:12px;color:var(--pw-subtle);font-weight:800;letter-spacing:.08em;padding-top:7px}
#pw-legal .pw-section-head h2{font-size:clamp(30px,4vw,52px);line-height:1;letter-spacing:var(--pw-track-heading);margin:0}
#pw-legal .pw-section-desc{font-size:16px;line-height:1.65;color:var(--pw-muted);margin:0}

#pw-legal .pw-fact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#pw-legal .pw-fact-card{min-height:300px;padding:28px;border:1px solid var(--pw-line);border-radius:28px;background:var(--pw-surface);display:flex;flex-direction:column;box-shadow:0 22px 64px -58px rgba(0,0,0,.55)}
#pw-legal .pw-card-kicker{color:var(--pw-subtle);margin-bottom:30px}
#pw-legal .pw-fact-value{font-size:clamp(32px,4.4vw,54px);line-height:1;letter-spacing:-0.02em;font-variant-numeric:tabular-nums;font-weight:760;margin-bottom:12px;overflow-wrap:anywhere}
#pw-legal .pw-fact-value.pw-code{font-size:clamp(24px,3.2vw,42px)}
#pw-legal .pw-fact-value.pw-iban{font-size:clamp(22px,3vw,38px)}
#pw-legal .pw-fact-card h3{font-size:21px;line-height:1.15;letter-spacing:var(--pw-track-title);margin-bottom:12px}
#pw-legal .pw-fact-card p{color:var(--pw-muted);line-height:1.6;margin-bottom:22px}
#pw-legal .pw-fact-card>a{margin-top:auto;min-height:44px;display:inline-flex;align-items:center;gap:6px;text-decoration:none;font-weight:720}
#pw-legal .pw-fact-card>a:hover{text-decoration:underline;text-underline-offset:4px}

#pw-legal .pw-identity-section{padding-top:100px}
#pw-legal .pw-identity-panel{border-radius:34px;padding:42px;display:grid;grid-template-columns:.88fr 1.12fr;gap:70px}
#pw-legal .pw-dark-kicker{color:var(--pw-fg-subtle);margin-bottom:22px}
#pw-legal .pw-identity-intro h3{font-size:clamp(30px,3.6vw,46px);line-height:1.04;letter-spacing:var(--pw-track-heading);margin-bottom:20px;color:var(--pw-fg)}
#pw-legal .pw-identity-intro h3[lang="et"]{--pw-track-heading:-0.045em}
#pw-legal .pw-identity-intro p{color:var(--pw-fg-muted);line-height:1.65;max-width:430px;margin-bottom:28px}
#pw-legal .pw-dark-link{display:inline-flex;gap:8px;color:var(--pw-link);text-decoration:none;font-weight:700}
#pw-legal .pw-dark-link:hover{text-decoration:underline;text-underline-offset:4px}
#pw-legal .pw-identity-details{margin:0;border-top:1px solid var(--pw-rule)}
#pw-legal .pw-identity-details>div{display:grid;grid-template-columns:150px 1fr;gap:24px;padding:18px 0;border-bottom:1px solid var(--pw-rule)}
#pw-legal .pw-identity-details dt{font-size:12px;color:var(--pw-fg-subtle);font-weight:800;text-transform:uppercase;letter-spacing:.1em}
#pw-legal .pw-identity-details dd{margin:0;color:var(--pw-fg);line-height:1.55;overflow-wrap:anywhere}

#pw-legal .pw-doc-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
#pw-legal .pw-doc-card{padding:28px;border:1px solid var(--pw-line);border-radius:28px;background:var(--pw-surface);display:flex;flex-direction:column;min-height:300px}
#pw-legal .pw-doc-meta{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px 18px;color:var(--pw-subtle);font-size:11px;line-height:1.3;font-weight:800;letter-spacing:.1em;text-transform:uppercase;margin-bottom:34px}
#pw-legal .pw-doc-card h3{font-size:26px;line-height:1.08;letter-spacing:var(--pw-track-title);margin-bottom:14px}
#pw-legal .pw-doc-card p{color:var(--pw-muted);line-height:1.62;margin-bottom:28px;max-width:520px}
#pw-legal .pw-doc-card .pw-btn{margin-top:auto;align-self:flex-start}

#pw-legal .pw-proof{padding:34px 0 88px}
#pw-legal .pw-proof-box{border-radius:34px;padding:42px;display:grid;grid-template-columns:.9fr 1.1fr;gap:70px}
#pw-legal .pw-proof h2{font-size:clamp(36px,4.3vw,58px);line-height:1.02;letter-spacing:var(--pw-track-heading);margin:0;color:var(--pw-fg)}
#pw-legal .pw-proof-copy p{color:var(--pw-fg-muted);font-size:17px;line-height:1.65;margin-bottom:20px}
#pw-legal .pw-proof-copy .pw-proof-note{font-size:13px;color:var(--pw-fg-subtle);margin-bottom:0}

#pw-legal .pw-close{padding:0 0 90px}
#pw-legal .pw-close-box{background:var(--pw-surface);border:1px solid var(--pw-line);border-radius:30px;padding:38px 42px;display:grid;grid-template-columns:1fr auto;gap:40px;align-items:end;box-shadow:0 22px 64px -58px rgba(0,0,0,.55)}
#pw-legal .pw-close-kicker{color:var(--pw-subtle);margin-bottom:18px}
#pw-legal .pw-close h2{font-size:clamp(34px,4vw,52px);line-height:1.02;letter-spacing:var(--pw-track-heading);margin-bottom:12px}
#pw-legal .pw-close p{color:var(--pw-muted);line-height:1.62;margin-bottom:0;max-width:760px}

@media(max-width:900px){
  #pw-legal .pw-hero{padding-top:120px}
  #pw-legal .pw-hero-grid{grid-template-columns:minmax(0,1fr);gap:42px}
  #pw-legal .pw-fact-grid,#pw-legal .pw-doc-grid{grid-template-columns:1fr 1fr}
  #pw-legal .pw-identity-panel,#pw-legal .pw-proof-box{grid-template-columns:1fr;gap:44px}
}
@media(max-width:620px){
  #pw-legal .pw-hero{padding:105px 0 66px}
  #pw-legal .pw-eyebrow{margin-bottom:20px}
  #pw-legal h1{font-size:clamp(46px,15vw,70px);line-height:.98}
  #pw-legal:lang(ru) h1{font-size:clamp(40px,12.5vw,64px)}
  #pw-legal .pw-lead{font-size:18px}
  #pw-legal .pw-section{padding:66px 0}
  #pw-legal .pw-section-head{margin-bottom:26px}
  #pw-legal .pw-fact-grid,#pw-legal .pw-doc-grid{grid-template-columns:1fr}
  #pw-legal .pw-fact-card,#pw-legal .pw-doc-card{min-height:0;padding:24px;border-radius:22px}
  #pw-legal .pw-identity-panel,#pw-legal .pw-proof-box{padding:26px 22px;border-radius:26px}
  #pw-legal .pw-identity-details>div{grid-template-columns:1fr;gap:7px;padding:17px 0}
  #pw-legal .pw-proof{padding:10px 0 66px}
  #pw-legal .pw-close{padding-bottom:78px}
  #pw-legal .pw-close-box{padding:28px 22px;grid-template-columns:1fr;align-items:start}
  #pw-legal .pw-close .pw-btn{width:100%}
}

/* Council adjudication: Cyrillic display sizing stays Legal-local.
   v0.3.7 tracking is correct; the hero size itself remains language-specific. */
#pw-legal:lang(ru) h1{
  font-size:clamp(56px,5.8vw,80px);
  overflow-wrap:break-word;
}

