/* ============================================================
   BENUKA TECH — legal pages
   Same tokens as index.html, trimmed to what these pages use.
   ============================================================ */
:root {
    --ink: #0A0E17;
    --ink-soft: #161C2B;
    --blue: #2438D6;
    --blue-deep: #141F8C;
    --blue-tint: #E6E8FA;
    --paper: #F1F2F5;
    --card: #FFFFFF;
    --signal: #2438D6;
    --line: #D5D8E0;
    --line-soft: #E4E6EC;
    --mute: #5A6376;
    --mute-2: #838BA0;

    --wrap: 1200px;
    --pad: 24px;

    --display: 'Archivo', 'Arial Narrow', sans-serif;
    --body: 'Instrument Sans', system-ui, sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, monospace;

    --r: 6px;
    --r-lg: 12px;
}

@media (min-width: 900px) { :root { --pad: 40px; } }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--mute);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

/* language toggle: only one of the two trees is ever rendered */
.tr, .en { display: contents; }
body.lang-tr .en { display: none !important; }
body.lang-en .tr { display: none !important; }

/* ---------- header ---------- */
.hdr {
    position: sticky; top: 0; z-index: 60;
    border-bottom: 1px solid transparent;
    transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.hdr.stuck {
    background: rgba(241, 242, 245, .88);
    backdrop-filter: blur(14px) saturate(1.4);
    border-bottom-color: var(--line);
}
.hdr-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand img { height: 30px; width: auto; }
.brand-name {
    font-family: var(--display);
    font-variation-settings: 'wdth' 118, 'wght' 800;
    font-size: 17px; letter-spacing: .06em; text-transform: uppercase;
    color: var(--ink); line-height: 1;
}
.brand-name em { font-style: normal; color: var(--blue); letter-spacing: .18em; font-variation-settings: 'wdth' 110, 'wght' 600; }

.hdr-right { display: flex; align-items: center; gap: 12px; flex: none; }
/* On a narrow phone the wordmark + switcher + button do not fit. The logo and
   the footer both link home, so drop the button rather than let it overflow. */
@media (max-width: 620px) { .hdr-right .btn { display: none; } }

.lang {
    display: flex; align-items: center; position: relative;
    border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--card);
}
.lang-pill {
    position: absolute; top: 3px; bottom: 3px; left: 3px; width: 38px;
    border-radius: 999px; background: var(--ink);
    transition: transform .3s cubic-bezier(.5,.05,.2,1);
}
.lang button {
    position: relative; z-index: 1; width: 38px; border: 0; background: none;
    font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .1em;
    padding: 5px 0; color: var(--mute-2); cursor: pointer; transition: color .25s;
}
.lang button[aria-pressed="true"] { color: #fff; }

.btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--mono); font-size: 11.5px; font-weight: 500;
    letter-spacing: .12em; text-transform: uppercase;
    padding: 13px 20px; border-radius: var(--r);
    border: 1px solid transparent; cursor: pointer;
    transition: background .22s, color .22s, border-color .22s;
}
.btn--sm { padding: 9px 15px; font-size: 10.5px; }
.btn--line { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn--line:hover { border-color: var(--ink); }

/* ---------- page head ---------- */
.doc-head { padding: clamp(36px, 6vw, 68px) 0 clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.eyebrow {
    font-family: var(--mono); font-size: 11px; letter-spacing: .18em;
    text-transform: uppercase; color: var(--mute-2);
    display: flex; align-items: center; gap: 10px; margin: 0 0 20px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; background: var(--signal); flex: none; }
.doc-title {
    font-family: var(--display);
    font-variation-settings: 'wdth' 112, 'wght' 700;
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1.02; letter-spacing: -0.015em; max-width: 18ch;
}
.doc-meta {
    margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px;
    font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em;
    text-transform: uppercase; color: var(--mute-2);
}
.doc-meta b { color: var(--ink); font-weight: 500; }

/* ---------- body layout ---------- */
.doc-body { padding: clamp(34px, 5vw, 60px) 0 clamp(48px, 7vw, 88px); }
/* minmax(0,…) on every track: without it a long unbreakable token (a monospace
   placeholder, a URL) sizes the column past the viewport and the page clips. */
.doc-grid { display: grid; gap: 40px; align-items: start; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .doc-grid { grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 64px; } }
.doc-grid > * { min-width: 0; }

/* table of contents */
.toc { position: static; }
@media (min-width: 1000px) { .toc { position: sticky; top: 96px; } }
.toc h2 {
    font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em;
    text-transform: uppercase; color: var(--mute-2); font-weight: 500; margin-bottom: 14px;
}
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
    display: flex; gap: 10px; font-size: 13.5px; line-height: 1.45;
    color: var(--mute); transition: color .2s;
}
.toc a::before {
    content: counter(toc, decimal-leading-zero);
    font-family: var(--mono); font-size: 10px; color: var(--mute-2);
    padding-top: 3px; flex: none;
}
.toc a:hover { color: var(--ink); }

/* prose */
.prose { max-width: 74ch; min-width: 0; }
/* Long unbreakable strings (emails, URLs, bracketed placeholders) must break
   rather than widen the column. */
.prose p, .prose li, .prose dd, .prose h2, .prose h3 { overflow-wrap: anywhere; }
.prose > section { padding-top: 4px; margin-bottom: 40px; scroll-margin-top: 92px; }
.prose h2 {
    font-family: var(--display);
    font-variation-settings: 'wdth' 108, 'wght' 700;
    font-size: clamp(19px, 2.2vw, 24px); line-height: 1.2;
    letter-spacing: -0.01em; margin-bottom: 14px;
}
.prose h2 .no {
    font-family: var(--mono); font-size: 11px; font-variation-settings: normal;
    letter-spacing: .12em; color: var(--blue); display: block; margin-bottom: 8px;
}
.prose h3 {
    font-size: 15px; font-weight: 600; color: var(--ink);
    margin: 24px 0 8px; line-height: 1.35;
}
.prose p { margin: 0 0 14px; font-size: 15px; line-height: 1.7; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 8px; }
.prose li { font-size: 15px; line-height: 1.65; }
.prose li::marker { color: var(--mute-2); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a:not(.btn) { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:not(.btn):hover { color: var(--blue-deep); }
.prose hr { border: 0; border-top: 1px solid var(--line-soft); margin: 34px 0; }

.note {
    background: var(--blue-tint); border-left: 3px solid var(--blue);
    border-radius: 0 var(--r) var(--r) 0; padding: 16px 18px; margin: 0 0 20px;
}
.note p { margin: 0; font-size: 14px; }
.note p + p { margin-top: 10px; }

.card {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--r-lg); padding: 20px 22px; margin: 0 0 20px;
}
.card p { margin: 0; font-size: 14.5px; }
.card p + p { margin-top: 9px; }

/* definition-style key/value rows */
.kv { display: grid; gap: 0; margin: 0 0 20px; border-top: 1px solid var(--line-soft); min-width: 0; }
.kv > div {
    display: grid; gap: 2px 20px; padding: 12px 0;
    grid-template-columns: minmax(0, 1fr);
    border-bottom: 1px solid var(--line-soft);
}
@media (min-width: 620px) { .kv > div { grid-template-columns: minmax(0, 210px) minmax(0, 1fr); } }
.kv dt {
    font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em;
    text-transform: uppercase; color: var(--mute-2); padding-top: 3px;
}
.kv dd { margin: 0; font-size: 14.5px; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }

/* wide tables scroll on their own */
.scroll-x { overflow-x: auto; margin: 0 0 20px; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); }
th {
    font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
    text-transform: uppercase; color: var(--mute-2); font-weight: 500;
    border-bottom-color: var(--line); white-space: nowrap;
}
td { color: var(--mute); }
td:first-child { color: var(--ink); font-weight: 500; }

/* ---------- footer ---------- */
.ftr { border-top: 1px solid var(--line); padding: clamp(40px, 5vw, 60px) 0 30px; }
.ftr-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .ftr-grid { grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, .7fr)); } }
.ftr p.about { font-size: 14px; line-height: 1.65; max-width: 40ch; margin: 18px 0 20px; }
.ftr h4 {
    font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em;
    text-transform: uppercase; color: var(--mute-2); font-weight: 500; margin-bottom: 16px;
}
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.ftr ul a { font-size: 14px; color: var(--mute); transition: color .2s; }
.ftr ul a:hover { color: var(--ink); }
.loc {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em;
    text-transform: uppercase; color: var(--mute-2);
}
.ftr-btm {
    margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line-soft);
    display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
    font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
    text-transform: uppercase; color: var(--mute-2);
}

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