/* Public info pages (security / terms / status) — shares the auth palette. */

body.info-page {
  /* auth.css sets body { display:flex; height:100vh; overflow:hidden } — undo it
     here so the document is a normal, scrolling block (not a max-content flex item). */
  display: block;
  height: auto;
  overflow-x: hidden;
  min-height: 100vh;
  background:
    radial-gradient(900px 700px at 15% 0%, oklch(0.5 0.16 var(--red-h) / 0.10), transparent 55%),
    radial-gradient(700px 600px at 92% 100%, oklch(0.45 0.14 var(--red-h) / 0.06), transparent 60%),
    linear-gradient(165deg, var(--bg-left), #050507 75%);
}

.info-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(1000px 700px at 50% 0%, #000 30%, transparent 80%);
          mask-image: radial-gradient(1000px 700px at 50% 0%, #000 30%, transparent 80%);
  opacity: 0.5;
}

.info {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 30px 28px 56px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* top bar */
.info-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}
.info-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--txt-mid);
  text-decoration: none;
  transition: color 0.2s var(--ease), gap 0.2s var(--ease);
}
.info-back:hover { color: var(--txt); gap: 11px; }
.info-back svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }

.info-top .lang-switch {
  display: inline-flex;
  gap: 2px;
  font-size: 11px;
  font-weight: 600;
}
.info-top .lang-switch a {
  padding: 4px 8px;
  color: var(--txt-dim);
  text-decoration: none;
  border-radius: var(--radius);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.info-top .lang-switch a.active { color: var(--txt); background: var(--surface-2); }
.info-top .lang-switch a:hover { color: var(--txt); }

/* document head */
.info-doc { flex: 1; }
.info-head { margin-bottom: 38px; }
.info-head .eyebrow {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: var(--red-bright);
  margin-bottom: 16px;
}
.info-head h1 {
  font-size: clamp(30px, 6vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 0 0 16px;
  color: var(--txt);
}
.info-lede {
  font-size: 15px;
  line-height: 1.65;
  color: var(--txt-mid);
  max-width: 56ch;
  margin: 0;
}

/* sections */
.info-sec {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.info-sec h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin: 0 0 10px;
  color: var(--txt);
}
.info-sec .sec-no {
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.08em;
  flex: none;
}
.info-sec p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--txt-mid);
  margin: 0;
  max-width: 62ch;
}
.info-sec p + p { margin-top: 10px; }
.info-sec p b { color: var(--txt); font-weight: 600; }

/* status-page state badges */
.state {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: auto;
  border: 1px solid var(--line);
  color: var(--txt-dim);
}
.state.on {
  color: oklch(0.78 0.16 150);
  border-color: oklch(0.5 0.12 150 / 0.5);
  background: oklch(0.5 0.12 150 / 0.08);
}
.state.seal {
  color: var(--red-bright);
  border-color: oklch(0.55 0.18 var(--red-h) / 0.45);
  background: oklch(0.55 0.18 var(--red-h) / 0.08);
}

.info-coda {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.7;
  color: var(--txt-dim);
  font-style: italic;
}

/* footer */
.info-foot {
  margin-top: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--txt-dim);
}
.info-foot nav { display: inline-flex; gap: 18px; }
.info-foot nav a {
  color: var(--txt-dim);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.info-foot nav a:hover { color: var(--txt-mid); }
.info-foot nav a.active { color: var(--txt); }

@media (max-width: 560px) {
  .info { padding: 22px 18px 40px; }
  .info-top { margin-bottom: 34px; }
  .info-foot { flex-direction: column; gap: 14px; align-items: flex-start; }
  .info-foot nav { flex-wrap: wrap; gap: 14px 18px; }
  /* comfortable tap targets for the header controls */
  .info-back { padding: 8px 0; }
  .info-top .lang-switch a { padding: 8px 10px; }
  .info-sec p, .info-lede { max-width: none; }
  .info-sec h2 { gap: 10px; flex-wrap: wrap; }
}

@media (max-width: 430px) {
  .info { padding: 20px 16px 36px; }
  .info-head h1 { font-size: clamp(26px, 8vw, 34px); }
  .info-sec p, .info-lede { font-size: 14px; }
  /* keep the status-page state badge from crowding a wrapped heading */
  .info-sec .state { margin-left: 0; }
}
