/* Layout shared by every page except the home stage. */
body.page { --hm: 1; background: var(--paper-2); color: var(--text); min-height: 100vh; display: flex; flex-direction: column; }
body.page main { flex: 1; }

html:not([lang="en"]) .lang-en,
html[lang="en"] .lang-tr { display: none !important; }
.serif .lang-tr, .serif .lang-en { color: inherit; }

/* dark intro band under the header */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + clamp(28px, 4vw, 52px)) var(--gutter) clamp(68px, 6vw, 88px);
  background: linear-gradient(160deg, #0a1c36, #061021 70%);
  color: var(--ink);
}
/* Optional photo (see page-photo.js): under the text, with a dark overlay for contrast. */
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--photo, none) center / cover no-repeat;
  opacity: 0; transition: opacity .6s ease;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .6s ease;
  background:
    linear-gradient(180deg, rgba(4, 12, 28, .55) 0, rgba(4, 12, 28, 0) 38%),
    linear-gradient(90deg, rgba(4, 12, 28, .9) 0%, rgba(4, 12, 28, .72) 42%, rgba(4, 12, 28, .38) 100%);
}
.page-hero.has-photo::before, .page-hero.has-photo::after { opacity: 1; }
.page-hero .lead { margin-top: 18px; max-width: 40em; }
.page-hero + .page-body { margin-top: clamp(-56px, -4vw, -32px); }
.page-body { position: relative; z-index: 1; padding: 0 var(--gutter) clamp(64px, 7vw, 110px); }
.page-plain { padding: calc(var(--header-h) + clamp(32px, 5vw, 64px)) var(--gutter) clamp(64px, 7vw, 110px); }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: 22px;
  box-shadow: 0 14px 34px rgba(16, 28, 48, .06);
}
.card-pad { padding: clamp(22px, 3vw, 40px); }
.section-title { font-size: 18px; font-weight: 800; letter-spacing: -.01em; color: var(--text); margin-bottom: 14px; }
.muted { color: var(--text-2); }
.page .kicker.dark { color: #5d6b80; }
.page .kicker.dark::before { background: var(--blue); }

/* ---------- legal documents ---------- */
.legal-wrap { max-width: 860px; }
.legal-back {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  padding: 8px 16px 8px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--border);
  font-size: 14px; font-weight: 700; color: var(--blue); text-decoration: none;
  transition: border-color .2s, transform .25s var(--ease);
}
.legal-back svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; }
.legal-back:hover { border-color: #c9d6ea; transform: translateX(-2px); }
.legal-doc { background: #fff; border: 1px solid var(--border); border-radius: 22px; box-shadow: 0 14px 34px rgba(16, 28, 48, .06); padding: clamp(26px, 4vw, 56px); }
.legal-head { padding-bottom: 22px; margin-bottom: 26px; border-bottom: 1px solid var(--border); }
.legal-head h1 { font-size: clamp(30px, 3vw, 44px); color: var(--text); }
.legal-lead { margin-top: 12px; font-size: var(--fs-lead); color: var(--text-2); }
.legal-updated { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--text-3); }
.legal-body { color: var(--text-2); line-height: 1.7; font-size: 15.5px; }
.legal-body h2 { margin: 30px 0 10px; font-size: 18px; font-weight: 800; letter-spacing: -.01em; color: var(--text); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { margin: 18px 0 8px; font-size: 15.5px; font-weight: 800; color: var(--text); }
.legal-body p + p { margin-top: 12px; }
.legal-body ul { margin: 10px 0 4px; display: flex; flex-direction: column; gap: 6px; }
.legal-body li { position: relative; padding-left: 18px; }
.legal-body li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.legal-body a { color: var(--blue); font-weight: 600; text-underline-offset: 3px; }
.legal-body strong { color: var(--text); }

.about-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; margin-bottom: 26px; }
.about-card { padding: 24px; border-radius: 18px; background: var(--paper-2); border: 1px solid var(--border); }
.about-card h3 { margin: 0 0 8px; font-size: 17px; }
.merchant { margin-top: 30px; padding: 24px; border-radius: 18px; background: var(--paper-2); border: 1px solid var(--border); }
.merchant h2 { margin-top: 0; }
.merchant-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px 22px; font-size: 14.5px; }
.merchant-grid strong { display: block; font-size: var(--fs-label); letter-spacing: var(--track); text-transform: uppercase; color: var(--text-3); margin-bottom: 2px; }

/* ---------- status / message pages ---------- */
body[data-state="done"] .state-invalid,
body[data-state="invalid"] .state-done,
body[data-state="pending"] .status-card { display: none; }
.status-card { max-width: 560px; margin: 0 auto; text-align: center; padding: clamp(32px, 5vw, 56px); }
.status-ico { width: 68px; height: 68px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: #eef4ff; color: var(--blue); }
.status-ico svg { width: 32px; height: 32px; stroke: currentColor; stroke-width: 2; }
.status-ico.ok { background: #e9f9ef; color: #1f9d55; }
.status-ico.bad { background: #fff1f1; color: #d93036; }
.status-card h1, .status-card h2 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; }
.status-card p { color: var(--text-2); }
.status-card .actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.btn.outline { border-color: var(--border); color: var(--text); background: #fff; }
.btn.outline:hover { border-color: #c9d3e1; }
.details { margin: 22px auto 0; max-width: 380px; text-align: left; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.details div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; font-size: 14px; }
.details div + div { border-top: 1px solid var(--border); }
.details dt { color: var(--text-3); white-space: nowrap; }
.details dd { margin: 0; font-weight: 700; color: var(--text); text-align: right; word-break: break-all; }
