/* Corpgen shared styles. The building's palette, type and furniture. */
@font-face { font-family: 'Hanken Grotesk'; font-weight: 400; font-display: swap; src: url(fonts/hanken-grotesk-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 400; font-display: swap; src: url(fonts/hanken-grotesk-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-0130, U+0132-02BA, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF; }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 500; font-display: swap; src: url(fonts/hanken-grotesk-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 500; font-display: swap; src: url(fonts/hanken-grotesk-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-0130, U+0132-02BA, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF; }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 600; font-display: swap; src: url(fonts/hanken-grotesk-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 600; font-display: swap; src: url(fonts/hanken-grotesk-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-0130, U+0132-02BA, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF; }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 700; font-display: swap; src: url(fonts/hanken-grotesk-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 700; font-display: swap; src: url(fonts/hanken-grotesk-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-0130, U+0132-02BA, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF; }
@font-face { font-family: 'Pixelify Sans'; font-weight: 500; font-display: swap; src: url(fonts/pixelify-sans-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Pixelify Sans'; font-weight: 500; font-display: swap; src: url(fonts/pixelify-sans-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-0130, U+0132-02BA, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF; }
@font-face { font-family: 'Pixelify Sans'; font-weight: 700; font-display: swap; src: url(fonts/pixelify-sans-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Pixelify Sans'; font-weight: 700; font-display: swap; src: url(fonts/pixelify-sans-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-0130, U+0132-02BA, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF; }
@font-face { font-family: 'Silkscreen'; font-weight: 400; font-display: swap; src: url(fonts/silkscreen-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Silkscreen'; font-weight: 400; font-display: swap; src: url(fonts/silkscreen-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-0130, U+0132-02BA, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF; }

*, *::before, *::after { box-sizing: border-box; }
:root {
  --night: #0B1C30; --panel: #0E2238; --deep: #05101D; --cream: #FFF3DC; --gold: #FFC93C; --pink: #FF7AB6;
  --ink: #0D2238; --soft: #C9D2DB; --ink-soft: #46566A; --line: #FFF3DC40; --ink-line: #0D223826; --stop: #E5484D;
  --ease: cubic-bezier(.23, 1, .32, 1); --gutter: clamp(16px, 6vw, 88px);
}
html { background: var(--night); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--cream); font-family: 'Hanken Grotesk', sans-serif; font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip; font-variant-ligatures: none; }
button, input, select, textarea { font: inherit; color: inherit; }
* { font-variant-ligatures: none !important; } /* Pixelify's fi and fl ligatures read as other letters: "first" became "Arst". The font shorthand resets this, hence !important. */
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
canvas { display: block; }
[hidden] { display: none !important; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; padding: 10px 14px; background: var(--gold); color: var(--ink); font-weight: 600; }
.skip:focus { top: 12px; }

/* Buttons */
.press { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 18px; border: 0; background: var(--gold); color: var(--ink); font: 700 20px 'Pixelify Sans', sans-serif; text-decoration: none; box-shadow: 0 5px 0 #B87A10; cursor: pointer; white-space: nowrap; transition: transform 90ms ease-out, box-shadow 90ms ease-out; }
.press:active { transform: translateY(5px); box-shadow: none; }
.press.small { min-height: 42px; padding: 0 13px; font-size: 17px; box-shadow: 0 4px 0 #B87A10; }
.press.small:active { transform: translateY(4px); box-shadow: none; }
.press.quiet { background: var(--cream); box-shadow: 0 5px 0 #A8977A; }
.press.quiet:active { box-shadow: none; }

/* Nav */
.site-nav { position: relative; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px clamp(16px, 3.2vw, 46px); font-weight: 500; font-size: 15px; }
.brand { font: 700 27px 'Pixelify Sans', sans-serif; text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a:not(.press) { padding: 8px 0; text-decoration: none; }
.nav-links a:not(.press):hover { text-decoration: underline; }
.nav-links a[aria-current="page"] { color: var(--gold); }
/* Silkscreen has no ı İ ğ ş: Turkish pages set the small pixel labels in Pixelify Sans capitals (lang-aware uppercase gives İ) */
html:lang(tr) .where, html:lang(tr) .tier .floors { font-family: 'Pixelify Sans', monospace; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
.lang-switch { display: inline-flex; align-items: stretch; border: 2px solid var(--line); font: 400 12px 'Silkscreen', monospace; letter-spacing: .08em; }
.nav-links .lang-switch { margin: 0 6px; }
.site-nav .lang-switch a { display: flex; align-items: center; padding: 7px 10px; margin: 0; color: var(--soft); text-decoration: none; line-height: 1; }
.site-nav .lang-switch a + a { border-left: 2px solid var(--line); }
.site-nav .lang-switch a:hover { color: var(--cream); text-decoration: none; }
.site-nav .lang-switch a[aria-current="true"] { background: var(--gold); color: var(--ink); }
.menu { display: none; }
@media (max-width: 860px) {
  .site-nav { padding: 12px 16px; }
  .nav-links { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border: 2px solid var(--cream); background: var(--night); font: 700 17px 'Pixelify Sans', sans-serif; list-style: none; cursor: pointer; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu-panel { position: absolute; right: 0; top: calc(100% + 6px); width: min(78vw, 280px); padding: 8px; background: var(--panel); border: 3px solid var(--cream); box-shadow: 6px 6px 0 var(--deep); }
  .menu-panel a { display: flex; align-items: center; min-height: 46px; padding: 0 10px; text-decoration: none; font-size: 16px; }
  .menu-panel a[aria-current="page"] { color: var(--gold); }
  .menu-panel .lang-switch { display: flex; margin-top: 10px; }
  .site-nav .menu-panel .lang-switch a { flex: 1; justify-content: center; padding: 12px 10px; font-size: 13px; }
}

/* Footer: the street under the building */
.site-foot { position: relative; z-index: 4; background: var(--deep); border-top: 3px solid #2A3342; padding: 44px var(--gutter) 24px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, minmax(120px, 1fr)); gap: 30px; }
.foot-sign { font: 700 clamp(44px, 6vw, 84px)/.9 'Pixelify Sans', sans-serif; color: var(--pink); text-shadow: 0 0 18px #FF7AB666; margin: 0 0 10px; }
.foot-line { margin: 0; color: var(--soft); max-width: 22em; }
.foot-col h2 { margin: 6px 0 8px; font: 500 15px 'Pixelify Sans', sans-serif; color: var(--gold); }
.foot-col a { display: block; padding: 5px 0; color: var(--cream); text-decoration: none; font-size: 15px; }
.foot-col a:hover { text-decoration: underline; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; margin-top: 34px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--soft); font-size: 14px; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* Inner pages share these */
.where { font: 400 13px 'Silkscreen', monospace; color: var(--gold); margin-bottom: 8px; }
.lede { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.42; max-width: 32em; margin: 0; }
.page-h1 { font: 700 clamp(46px, 6.4vw, 104px)/.94 'Pixelify Sans', sans-serif; letter-spacing: -.012em; margin: 0 0 18px; text-wrap: balance; }
.sec-h2 { font: 700 clamp(30px, 3.4vw, 54px)/1 'Pixelify Sans', sans-serif; margin: 0 0 14px; text-wrap: balance; }
.wrap { padding-inline: var(--gutter); }
.block { padding-block: clamp(48px, 7vw, 96px); }
.plate { background: var(--cream); color: var(--ink); border: 3px solid var(--cream); box-shadow: 8px 8px 0 var(--deep); }
.plate a { color: var(--ink); }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px; padding: 34px var(--gutter); background: var(--gold); color: var(--ink); }
.cta-band h2 { margin: 0; font: 700 clamp(30px, 3.4vw, 52px)/1 'Pixelify Sans', sans-serif; text-wrap: balance; max-width: 16em; }
.cta-band .press { background: var(--ink); color: var(--cream); box-shadow: 0 5px 0 #000; }
.cta-band .press:active { box-shadow: none; }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-top: 2px solid var(--line); }
.faq details:last-child { border-bottom: 2px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 16px 0; min-height: 52px; font-weight: 600; font-size: 18px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font: 700 26px/1 'Pixelify Sans', sans-serif; color: var(--gold); }
.faq details[open] summary::after { content: '-'; }
.faq details p { margin: 0 0 18px; max-width: 62ch; color: var(--soft); }

/* How it works */
.how-hero { min-height: calc(100vh - 80px); display: flex; flex-direction: column; justify-content: center; padding-block: 16px 60px; }
.how-hero .page-h1 { font-size: clamp(44px, 5vw, 86px); }
.how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); padding-inline: var(--gutter); }
.how { margin-top: -80px; }
.how-floors { padding-top: 80px; }
.how-tower { position: sticky; top: 0; height: 100vh; height: 100dvh; order: 2; }
.how-tower canvas { width: 100%; height: 100%; }
.how-floors { order: 1; padding-bottom: 16vh; }
.floor-sec { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding-block: 24px; scroll-margin-top: 20px; }
.floor-sec p { max-width: 34em; margin: 0 0 18px; }
.who { margin: 0; padding: 12px 16px 14px; }
.who div { display: grid; grid-template-columns: 136px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--ink-line); font-size: 15.5px; line-height: 1.4; }
.who div:first-child { border-top: 0; }
.who dt { font-weight: 700; } .who dd { margin: 0; }
.who .ask dt { color: #A85C00; }
.gate { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.gate > div { padding: 12px 14px; border: 2px solid var(--cream); font-size: 15.5px; line-height: 1.4; background: var(--panel); }
.gate b { display: block; font: 700 19px 'Pixelify Sans', sans-serif; color: var(--gold); margin-bottom: 3px; }
.notours { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px 40px; margin-top: 20px; }
.notours h3 { margin: 0 0 4px; font-size: 18px; }
.notours p { margin: 0; color: var(--soft); }
@media (max-width: 860px) {
  .how { display: block; padding: 0; margin-top: 0; }
  .how-hero { min-height: 0; padding-block: 24px 8px; }
  .how-tower { z-index: 3; height: 34vh; background: var(--night); border-bottom: 3px solid var(--cream); }
  .how-floors { padding: 0 16px 40px; }
  .floor-sec { min-height: 0; padding-block: 34px; scroll-margin-top: 36vh; }
  .who div { grid-template-columns: 1fr; gap: 2px; }
  .gate { grid-template-columns: 1fr; }
}

/* Pricing */
.price-hero { padding: clamp(36px, 6vw, 76px) var(--gutter) 0; }
.street { width: 100%; height: clamp(250px, 42vw, 460px); margin-top: 18px; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--cream); color: var(--ink); border-top: 3px solid var(--deep); }
.tier { padding: 26px clamp(16px, 2.6vw, 38px) 34px; border-left: 2px solid var(--ink-line); display: flex; flex-direction: column; }
.tier:first-child { border-left: 0; }
.tier h2 { margin: 0; font: 700 clamp(32px, 3vw, 46px)/1 'Pixelify Sans', sans-serif; }
.tier .floors { margin: 2px 0 12px; font: 400 13px 'Silkscreen', monospace; color: #8A5200; }
.tier p { margin: 0 0 14px; }
.tier ul { margin: 0 0 20px; padding: 0; list-style: none; }
.tier li { padding: 7px 0; border-top: 1px solid var(--ink-line); font-size: 15.5px; }
.tier .price { margin-top: auto; padding-top: 8px; font: 700 21px/1.1 'Pixelify Sans', sans-serif; }
.tier .price small { display: block; margin-top: 3px; font: 400 14px 'Hanken Grotesk', sans-serif; color: var(--ink-soft); }
.costs { width: 100%; max-width: 980px; border-collapse: collapse; }
.costs th, .costs td { padding: 14px 16px 14px 0; border-top: 2px solid var(--line); text-align: left; vertical-align: top; }
.costs thead th { border-top: 0; font: 500 15px 'Pixelify Sans', sans-serif; color: var(--gold); }
.costs tbody th { font-weight: 600; width: 26%; }
.costs td { color: var(--soft); }
@media (max-width: 860px) {
  .tiers { grid-template-columns: 1fr; }
  .tier { border-left: 0; border-top: 2px solid var(--ink-line); }
  .tier:first-child { border-top: 0; }
  .street { height: 220px; }
}
@media (max-width: 620px) {
  .costs, .costs tbody, .costs tr, .costs th, .costs td { display: block; width: auto; }
  .costs thead { display: none; }
  .costs tbody th { padding: 14px 0 2px; width: auto; }
  .costs td { padding: 2px 0; border-top: 0; }
  .costs td:last-child { padding-bottom: 14px; }
}

/* Security */
.sec-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 64px); align-items: stretch; padding: clamp(28px, 4vw, 56px) var(--gutter); }
.switch-scene { position: relative; min-height: min(78vh, 680px); background: #081524; border: 3px solid var(--cream); box-shadow: 8px 8px 0 var(--deep); }
.switch-scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stop-panel { margin-top: 22px; padding: 16px; border: 3px solid var(--cream); background: var(--panel); }
.stop-btn { width: 100%; min-height: 62px; border: 0; background: var(--stop); color: #fff; font: 700 24px 'Pixelify Sans', sans-serif; box-shadow: 0 6px 0 #8B1F24; cursor: pointer; transition: transform 90ms ease-out, box-shadow 90ms ease-out; }
.stop-btn:active { transform: translateY(6px); box-shadow: none; }
.stop-btn.on { background: var(--gold); color: var(--ink); box-shadow: 0 6px 0 #B87A10; }
.stop-btn.on:active { box-shadow: none; }
.states { margin: 14px 0 0; }
.states div { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 15px; }
.states dt { color: var(--soft); } .states dd { margin: 0; font-weight: 600; text-align: right; }
.states.off dd { color: #FF9EA1; }
.example-note { margin: 10px 0 0; font-size: 13.5px; color: var(--soft); }
.keys { width: 100%; border-collapse: collapse; font-size: 16px; }
.keys th, .keys td { padding: 12px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--ink-line); }
.keys thead th { border-top: 0; font: 700 18px 'Pixelify Sans', sans-serif; }
.keys tbody th { font-weight: 700; }
.keys-wrap { overflow-x: auto; }
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 48px; } /* 6 rules → 3+3, never an orphan row */
@media (max-width: 900px) { .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .rules { grid-template-columns: 1fr; } }
.rules h3 { margin: 0 0 6px; font: 700 26px/1.05 'Pixelify Sans', sans-serif; color: var(--gold); }
.rules p { margin: 0; }
.notyet { max-width: 760px; padding: 22px 24px; border: 3px dashed var(--cream); }
.notyet h2 { margin-top: 0; }
.notyet ul { margin: 0; padding-left: 20px; }
.notyet li { padding: 3px 0; }
@media (max-width: 860px) {
  .sec-hero { grid-template-columns: 1fr; padding-inline: 16px; }
  .switch-scene { min-height: 300px; }
  .keys, .keys tbody, .keys tr, .keys th, .keys td { display: block; }
  .keys thead { display: none; }
  .keys tr { padding: 10px 14px; border-top: 1px solid var(--ink-line); }
  .keys tr:first-child { border-top: 0; }
  .keys th, .keys td { padding: 3px 0; border: 0; }
  .keys td::before { content: attr(data-l) ': '; font-weight: 600; }
}

/* Contact: the front desk */
.desk { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); min-height: calc(100vh - 80px); }
.desk-scene { position: relative; display: flex; flex-direction: column; min-width: 0; }
.desk-copy { padding: clamp(28px, 4vw, 56px) var(--gutter) 18px; }
.desk-scene canvas { flex: 1; width: 100%; min-height: 280px; }
.desk-form { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 4vw, 56px) var(--gutter) clamp(28px, 4vw, 56px) clamp(20px, 3vw, 44px); background: var(--cream); color: var(--ink); } /* short forms (demo) sit centred, not top-left over empty cream */
.desk-form h2 { margin: 0 0 16px; font: 700 clamp(28px, 2.6vw, 40px)/1 'Pixelify Sans', sans-serif; }
.field { margin-bottom: 15px; }
.field label { display: block; margin-bottom: 4px; font-weight: 600; font-size: 15.5px; }
.field input, .field select, .field textarea { display: block; width: 100%; min-height: 50px; padding: 11px 12px; border: 3px solid var(--ink); border-radius: 0; background: #FFFBF1; color: var(--ink); font-size: 16px; }
.field textarea { min-height: 130px; resize: vertical; line-height: 1.45; }
.field :focus-visible { outline-color: #B87A10; outline-offset: 2px; }
.err { min-height: 0; margin: 4px 0 0; color: #A61B20; font-size: 14.5px; font-weight: 600; }
.field.bad input, .field.bad textarea { border-color: #A61B20; }
.desk-form .press { width: 100%; background: var(--ink); color: var(--cream); box-shadow: 0 5px 0 #000; }
.desk-form .press:active { box-shadow: none; }
.fine { margin: 12px 0 0; font-size: 14px; line-height: 1.4; color: var(--ink-soft); }
.sent { margin: 12px 0 0; padding: 10px 12px; background: var(--ink); color: var(--cream); font-size: 15px; }
.sent a { color: var(--gold); }
.send-err { margin: 12px 0 0; }
.send-err a { color: inherit; }
.joined { margin: 0; padding: 16px 16px 18px; }
.sent:focus { outline: none; }
.joined b { display: block; font: 700 clamp(24px, 2.2vw, 32px)/1.05 'Pixelify Sans', sans-serif; color: var(--gold); }
.joined p { margin: 8px 0 0; }
.lines { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px 40px; }
.lines h3 { margin: 0 0 3px; font: 700 23px/1.1 'Pixelify Sans', sans-serif; color: var(--gold); }
.lines p { margin: 0 0 4px; color: var(--soft); }
.lines a { font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .desk { grid-template-columns: 1fr; min-height: 0; }
  .desk-copy { padding-inline: 16px; }
  .desk-scene canvas { flex: none; height: 240px; min-height: 0; }
  .desk-form { padding: 28px 16px; }
}

/* Legal: the archive in the basement */
.archive-band { width: 100%; height: clamp(110px, 15vw, 180px); }
.legal { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(20px, 3.4vw, 54px); align-items: start; padding: 0 var(--gutter) clamp(48px, 6vw, 80px); margin-top: 28px; }
.legal-head { grid-column: 1 / -1; }
.legal-head .page-h1 { font-size: clamp(38px, 4.8vw, 74px); margin-bottom: 10px; }
.legal-head .meta { margin: 0; color: var(--soft); font-size: 15.5px; }
.toc { position: sticky; top: 18px; font-size: 15px; }
.toc h2 { margin: 0 0 6px; font: 500 15px 'Pixelify Sans', sans-serif; color: var(--gold); }
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc a { display: block; padding: 5px 0; text-decoration: none; line-height: 1.3; }
.toc a:hover { text-decoration: underline; }
.sheet { max-width: 800px; padding: clamp(22px, 3.2vw, 46px); background: var(--cream); color: var(--ink); box-shadow: 8px 8px 0 var(--deep); font-size: 17px; line-height: 1.6; overflow-wrap: break-word; }
.sheet a { color: var(--ink); font-weight: 600; }
.sheet h2 { margin: 34px 0 8px; font: 700 27px/1.12 'Pixelify Sans', sans-serif; scroll-margin-top: 16px; }
.sheet h2:first-of-type { margin-top: 20px; }
.sheet h3 { margin: 20px 0 4px; font-size: 17px; }
.sheet p { margin: 0 0 12px; max-width: 68ch; }
.sheet ul, .sheet ol { margin: 0 0 14px; padding-left: 22px; max-width: 68ch; }
.sheet li { padding: 3px 0; }
.sheet table { width: 100%; margin: 6px 0 18px; border-collapse: collapse; font-size: 15px; line-height: 1.42; }
.sheet th, .sheet td { padding: 9px 10px 9px 0; border-top: 1px solid #0D22383D; text-align: left; vertical-align: top; }
.sheet thead th { border-top: 0; font-weight: 700; }
.table-scroll { overflow-x: auto; }
.table-scroll table { min-width: 560px; }
.fill { padding: 0 4px; background: var(--gold); color: var(--ink); font-weight: 600; }
.draft { margin: 0 0 18px; padding: 11px 13px; background: var(--ink); color: var(--cream); font-size: 15px; line-height: 1.42; max-width: none !important; }
@media (max-width: 860px) {
  .legal { grid-template-columns: minmax(0, 1fr); padding-inline: 16px; }
  .legal-head .page-h1 { overflow-wrap: anywhere; }
  .toc { position: static; padding: 12px 14px; border: 2px solid var(--line); }
  .sheet { box-shadow: 5px 5px 0 var(--deep); }
}
@media (max-width: 620px) {
  .table-scroll table { min-width: 0; }
  .sheet thead { display: none; }
  .sheet table, .sheet tbody, .sheet tr, .sheet td { display: block; width: auto; }
  .sheet tr { padding: 10px 0; border-top: 1px solid #0D22383D; }
  .sheet td { padding: 1px 0; border: 0; }
  .sheet td:first-child { font-weight: 700; }
}

/* 404 */
.lost { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; min-height: calc(100vh - 340px); padding: 24px var(--gutter) 56px; }
.lost canvas { width: 100%; height: clamp(300px, 56vh, 560px); }
.lost-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (max-width: 860px) { .lost { grid-template-columns: 1fr; padding-inline: 16px; } .lost canvas { height: 280px; order: -1; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: 1ms !important; } }
