/* Legal pages (/kullanici-aydinlatma-metni/, /musteri-aydinlatma-metni/,
   /gizlilik-sozlesmesi/). Loaded after styles.css and reads its tokens. */

/* A link straight to a section (#deletion) must land there at once; the home
   page animates its jumps, these pages do not. */
html:has(body.legal) { scroll-behavior: auto; }
.legal { background: var(--bg); }
.legal .skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  padding: 10px 14px; background: var(--text); color: #fff; border-radius: 8px;
  font-size: 0.85rem; font-weight: 600; text-decoration: none;
}
.legal .skip:focus { top: 12px; }

.legal .nav-home {
  font-size: 0.85rem; font-weight: 500; color: var(--text-dim);
  text-decoration: none; padding: 10px 6px;
}
.legal .nav-home:hover { color: var(--text); }

/* ── Header band ── */
.lg-head {
  padding: 76px 0 0;
  background:
    radial-gradient(900px 260px at 12% 0%, rgba(238, 132, 51, 0.07), transparent 70%),
    radial-gradient(900px 300px at 88% 0%, rgba(47, 125, 246, 0.08), transparent 70%),
    var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.lg-head-in { max-width: 1080px; margin: 0 auto; padding: 56px 40px 34px; }
.lg-kind {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted);
}
.lg-kind .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-grad); }
.lg-head h1 {
  margin-top: 14px; max-width: 24ch;
  font-size: clamp(1.75rem, 4.2vw, 2.7rem); line-height: 1.14;
  font-weight: 800; letter-spacing: -0.022em; text-wrap: balance;
}
.lg-lead {
  margin-top: 16px; max-width: 62ch;
  font-size: 1.02rem; line-height: 1.65; color: var(--text-dim);
}
.lg-meta { display: flex; flex-wrap: wrap; gap: 10px 36px; margin-top: 26px; }
.lg-meta dt {
  font-family: var(--mono); font-size: 0.64rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted);
}
.lg-meta dd { margin-top: 2px; font-size: 0.9rem; font-weight: 600; color: var(--text); }

/* The three documents, as tabs sitting on the band's lower edge. */
.lg-tabs {
  max-width: 1080px; margin: 0 auto; padding: 0 40px;
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
}
.lg-tabs::-webkit-scrollbar { display: none; }
.lg-tabs a {
  flex: none; padding: 13px 14px 12px; margin-bottom: -1px;
  font-size: 0.86rem; font-weight: 600; color: var(--text-muted);
  text-decoration: none; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.lg-tabs a:hover { color: var(--text); }
.lg-tabs a[aria-current="page"] {
  color: var(--text);
  border-image: var(--brand-grad) 1; border-bottom-width: 2px; border-bottom-style: solid;
}

/* ── Body ── */
.lg-main { max-width: 1080px; margin: 0 auto; padding: 48px 40px 96px; }
.lg-main.with-toc {
  display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 56px; align-items: start;
}
.lg-doc { max-width: 74ch; min-width: 0; }

.lg-doc p, .lg-doc li, .lg-doc td, .lg-doc th {
  font-size: 1rem; line-height: 1.78; color: #1f2937; overflow-wrap: anywhere;
}
.lg-doc p { margin-top: 1.15em; }
.lg-doc > p:first-child { margin-top: 0; }
.lg-main:not(.with-toc) .lg-doc > p:first-child {
  font-size: 1.08rem; line-height: 1.72; color: var(--text);
}
.lg-doc a { color: var(--accent-dark); text-underline-offset: 3px; }
.lg-doc a:hover { color: var(--accent); }
.lg-doc a.ext { font-size: 0.9em; }

.lg-doc .pts { list-style: none; margin: 1.1em 0 0; display: grid; gap: 0.6em; }
.lg-doc .pts li { position: relative; padding-left: 26px; }
.lg-doc .pts li::before {
  content: ""; position: absolute; left: 6px; top: 0.72em;
  width: 7px; height: 7px; border-radius: 2px; background: var(--brand-grad);
}

.tbl-wrap {
  margin-top: 1.6em; border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; background: #fff;
}
.tbl { width: 100%; border-collapse: collapse; }
.tbl thead th {
  padding: 12px 18px; text-align: left; background: var(--bg-soft);
  font-family: var(--mono); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.tbl tbody th, .tbl tbody td {
  padding: 14px 18px; text-align: left; vertical-align: top;
  border-top: 1px solid var(--border); font-size: 0.95rem; line-height: 1.6;
}
.tbl tbody tr:first-child th, .tbl tbody tr:first-child td { border-top: 0; }
.tbl tbody th { width: 34%; font-weight: 600; color: var(--text); }

/* Numbered steps (how to ask for deletion). */
.lg-doc .steps { list-style: none; counter-reset: step; margin-top: 1.2em; display: grid; gap: 14px; }
.lg-doc .steps li {
  counter-increment: step; position: relative; padding: 16px 18px 16px 58px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--bg-soft);
  font-size: 0.97rem; line-height: 1.7;
}
.lg-doc .steps li::before {
  content: counter(step); position: absolute; left: 16px; top: 16px;
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: var(--brand-grad); color: #fff;
  font-family: var(--mono); font-size: 0.78rem; font-weight: 700;
}

/* The paragraph that says where to send a request. */
.lg-doc p.contact {
  margin-top: 2em; padding: 20px 22px;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: 12px;
  font-size: 0.96rem;
}

/* A field the source left empty: drawn as a ruled gap, never hidden. */
.blank {
  display: inline-block; width: 7.5em; max-width: 40vw; height: 1.05em;
  vertical-align: -0.2em; border-bottom: 1.5px solid var(--border-strong);
  background: var(--bg-muted); border-radius: 3px 3px 0 0;
}
.fill {
  font-family: var(--mono); font-size: 0.86em; color: var(--text-muted);
  padding: 1px 6px; border: 1px dashed var(--border-strong); border-radius: 5px;
  background: var(--bg-soft); white-space: nowrap;
}

/* ── Agreement ── */
.art { scroll-margin-top: 96px; padding-top: 34px; margin-top: 34px; border-top: 1px solid var(--border); }
.art:first-child { padding-top: 0; margin-top: 0; border-top: 0; }
.art h2 {
  font-size: 1.28rem; line-height: 1.3; font-weight: 750; letter-spacing: -0.012em;
  color: var(--text);
}
.art-no {
  display: block; margin-bottom: 6px;
  font-family: var(--mono); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-dark);
}
.lg-doc p.cl { display: grid; grid-template-columns: 3.4em minmax(0, 1fr); column-gap: 6px; }
.lg-doc p.cl .cl-no {
  font-family: var(--mono); font-size: 0.82em; font-weight: 600; color: var(--text-muted);
  padding-top: 0.14em;
}
.lg-doc p.cl.sub { margin-top: 0.7em; padding-left: 3.4em; grid-template-columns: 2em minmax(0, 1fr); }
.lg-doc p.cl.tail { margin-top: 0.7em; }
.lg-doc p.closing {
  margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border);
  font-weight: 500; color: var(--text);
}
.sign { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.sign-box {
  display: flex; flex-direction: column; gap: 10px; min-height: 168px; padding: 18px 20px;
  border: 1px solid var(--border); border-radius: 14px; background: var(--bg-soft);
}
.sign-name { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em; color: var(--text); }
.sign-line { margin-top: auto; border-bottom: 1.5px solid var(--border-strong); }
.sign-cap {
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted);
}

.lg-aside { position: sticky; top: 100px; max-height: calc(100dvh - 124px); overflow-y: auto; }
.toc-h {
  font-family: var(--mono); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted);
  padding: 0 0 10px 12px;
}
.toc ol { list-style: none; border-left: 1px solid var(--border); }
.toc a {
  display: grid; grid-template-columns: 1.7em minmax(0, 1fr); gap: 4px;
  margin-left: -1px; padding: 7px 0 7px 12px;
  font-size: 0.84rem; line-height: 1.4; color: var(--text-dim); text-decoration: none;
  border-left: 2px solid transparent;
}
.toc a span { font-family: var(--mono); font-size: 0.74rem; color: var(--text-muted); padding-top: 0.1em; }
.toc a:hover { color: var(--text); border-left-color: var(--accent); }

.legal :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ── Narrow ── */
@media (max-width: 980px) {
  .lg-main.with-toc { display: block; }
  .lg-aside {
    position: static; max-height: none; margin-bottom: 36px; padding: 18px 16px 12px;
    border: 1px solid var(--border); border-radius: 14px; background: var(--bg-soft);
  }
  .toc-h { padding-left: 0; }
  .toc ol { border-left: 0; columns: 2; column-gap: 24px; }
  .toc a { margin-left: 0; padding: 12px 0; border-left: 0; break-inside: avoid; }
}
@media (max-width: 768px) {
  .lg-head { padding-top: 64px; }
  .lg-head-in { padding: 36px 20px 26px; }
  .lg-tabs {
    padding: 0 28px 0 12px;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
  }
  .lg-main { padding: 32px 20px 72px; }
  .tbl thead th, .tbl tbody th, .tbl tbody td { padding: 12px 14px; }
  .tbl tbody th { width: 38%; }
  .lg-doc p.cl { grid-template-columns: 2.9em minmax(0, 1fr); }
  .lg-doc p.cl.sub { padding-left: 1.2em; }
  .lg-doc .steps li { padding: 14px 14px 14px 52px; }
  .lg-doc .steps li::before { left: 12px; top: 14px; }
  .art { scroll-margin-top: 80px; }
}
@media (max-width: 560px) {
  .toc ol { columns: 1; }
  .sign { grid-template-columns: 1fr; }
  /* A three-column table has no room here: each row becomes a small card,
     every value under its own column name. */
  .tbl-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tbl-stack, .tbl-stack tbody, .tbl-stack tr, .tbl-stack tbody th, .tbl-stack td { display: block; width: auto; }
  .tbl-stack tbody tr { padding: 14px 16px; border-top: 1px solid var(--border); }
  .tbl-stack tbody tr:first-child { border-top: 0; }
  .tbl-stack tbody th, .tbl-stack tbody td { padding: 0; border: 0; }
  .tbl-stack tbody td { margin-top: 10px; font-size: 0.93rem; }
  .tbl-stack tbody td::before {
    content: attr(data-label); display: block; margin-bottom: 1px;
    font-family: var(--mono); font-size: 0.62rem; font-weight: 600;
    letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-muted);
  }
}
/* The home page hides the nav button on phones because its page carries the
   call to action elsewhere; here the "home" link is all the nav needs. */
@media (max-width: 480px) {
  .legal .nav-home { padding: 12px 4px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ── Print: the text and nothing else ── */
@media print {
  .legal nav, .legal footer, .lg-tabs, .lg-aside, .legal .skip { display: none !important; }
  .lg-head { padding: 0; background: none; border: 0; }
  .lg-head-in { padding: 0 0 14pt; }
  .lg-main, .lg-main.with-toc { display: block; padding: 0; max-width: none; }
  .lg-doc { max-width: none; }
  .lg-doc p, .lg-doc li, .lg-doc td, .lg-doc th { font-size: 10.5pt; line-height: 1.5; color: #000; }
  .art { break-inside: avoid-page; }
  .sign { break-inside: avoid; }
  .lg-doc a { color: #000; text-decoration: none; }
}
