/* Ovrina's public pages (support, privacy, terms, account deletion).
   Same fonts and colours as the app on a plain page (white in light, near
   black in dark, like the home page); light and dark. */
@font-face { font-family: Nunito; font-weight: 400; font-display: swap; src: url(/fonts/Nunito-Regular.ttf); }
@font-face { font-family: Nunito; font-weight: 600; font-display: swap; src: url(/fonts/Nunito-SemiBold.ttf); }
@font-face { font-family: Nunito; font-weight: 800; font-display: swap; src: url(/fonts/Nunito-ExtraBold.ttf); }
/* Korean: Ovrina Round KR, the app's NanumSquareRound copy without its blank
   Hangul glyphs, so a syllable it doesn't draw falls back to the next font
   instead of showing as a gap. */
@font-face { font-family: "Ovrina Round KR"; font-weight: 400; font-display: swap; src: url(/fonts/OvrinaRoundKR-Regular.ttf); }
@font-face { font-family: "Ovrina Round KR"; font-weight: 700; font-display: swap; src: url(/fonts/OvrinaRoundKR-Bold.ttf); }
@font-face { font-family: "Ovrina Round KR"; font-weight: 800; font-display: swap; src: url(/fonts/OvrinaRoundKR-ExtraBold.ttf); }

:root {
  --bg: #ffffff; --card: rgba(255,255,255,.78); --line: rgba(27,31,59,.09);
  --text: #16171d; --muted: #575c69; --faint: #686c79;
  --accent: #2f47d6; --accent2: #0fa6d0; --soft: rgba(47,71,214,.10);
  --shadow: 0 24px 60px -30px rgba(27,31,59,.26), 0 2px 6px rgba(27,31,59,.04);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0c11; --card: rgba(28,30,39,.82); --line: rgba(255,255,255,.08);
    --text: #f3f4f7; --muted: #a7acb9; --faint: #8c91a0;
    --accent: #7c8fff; --accent2: #4fd2ee; --soft: rgba(124,143,255,.16);
    --shadow: 0 30px 70px -34px rgba(0,0,0,.7);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--text); background: var(--bg);
  font: 16px/1.65 Nunito, "Ovrina Round KR", -apple-system, "Segoe UI", "Apple SD Gothic Neo", sans-serif;
}
:lang(ko) body, body:lang(ko) { font-family: "Ovrina Round KR", Nunito, "Apple SD Gothic Neo", sans-serif; word-break: keep-all; }
main { max-width: 760px; margin: 0 auto; padding: 28px 16px 64px; }
header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 20px; }
/* hairline around the icon's white tile so it still reads as a tile on the
   white page (on the old tinted page the tile showed by itself) */
.brand img { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); }
.langs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.langs button { border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 800; font-size: 14px; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.langs button[aria-pressed="true"] { background: var(--accent); color: #fff; }
/* Under 300 px the two language buttons are a little narrower, so the
   header fits the page (Korean set them 5 px too wide at 280). */
@media (max-width: 299.98px) { .langs button { padding: 6px 9px; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px 24px; box-shadow: var(--shadow); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
h1 { font-size: clamp(28px, 6vw, 38px); line-height: 1.2; margin: 0 0 6px; font-weight: 800; letter-spacing: -.01em; }
.updated { color: var(--faint); font-size: 14px; margin: 0 0 22px; }
h2 { font-size: 20px; margin: 30px 0 8px; font-weight: 800; }
h3 { font-size: 16px; margin: 18px 0 4px; font-weight: 800; }
p, li { color: var(--muted); }
strong { color: var(--text); }
ul { padding-left: 20px; margin: 8px 0; }
li { margin: 4px 0; }
a { color: var(--accent); font-weight: 700; }
.lead { font-size: 17px; }
.callout { margin: 18px 0; padding: 16px 18px; border-radius: 18px; background: var(--soft); border: 1px solid var(--line); }
.callout p { margin: 4px 0; }
/* The main button: the app's primary look, frosted accent (as on the home
   page): an accent tint over milky frost, a crisp edge, a fine light rim
   at the top left (::before), a line of light inside the top edge. A
   little more tint under the mouse. */
:root {
  --a2-frost: rgba(255,255,255,.55); --a2-top: 84%; --a2-bottom: 90%; --a2-top-hover: 90%; --a2-bottom-hover: 95%;
  --a2-haze: rgba(255,255,255,.18); --a2-rim: rgba(255,255,255,.5); --a2-shine: rgba(255,255,255,.35);
  --a2-edge: color-mix(in srgb, color-mix(in srgb, var(--accent) 82%, #000) 75%, transparent);
  --a2-lift: 0 1px 2px rgba(27,31,59,.10);
}
@media (prefers-color-scheme: dark) {
  :root {
    --a2-frost: rgba(255,255,255,.70); --a2-top: 70%; --a2-bottom: 78%; --a2-top-hover: 78%; --a2-bottom-hover: 86%;
    --a2-haze: rgba(255,255,255,.22); --a2-rim: rgba(255,255,255,.6); --a2-shine: rgba(255,255,255,.42);
    --a2-edge: color-mix(in srgb, color-mix(in srgb, var(--accent) 70%, #000) 60%, transparent);
    --a2-lift: 0 0 #0000;
  }
}
.btn { --a2-t: var(--a2-top); --a2-b: var(--a2-bottom);
  position: relative; display: inline-block; margin-top: 6px; padding: 12px 20px; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 800;
  border: 1px solid var(--a2-edge);
  background-color: var(--a2-frost);
  background-image:
    linear-gradient(180deg, var(--a2-haze), transparent 30%),
    linear-gradient(180deg,
      color-mix(in srgb, var(--accent) var(--a2-t), transparent) 30%,
      color-mix(in srgb, var(--accent) var(--a2-b), transparent));
  box-shadow: inset 0 1px 0 var(--a2-shine), var(--a2-lift);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  transition: --a2-t .2s, --a2-b .2s; }
.btn:hover { --a2-t: var(--a2-top-hover); --a2-b: var(--a2-bottom-hover); }
.btn::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, var(--a2-rim) 15%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
@property --a2-t { syntax: "<percentage>"; inherits: false; initial-value: 84%; }
@property --a2-b { syntax: "<percentage>"; inherits: false; initial-value: 90%; }
/* No backdrop filter (older browsers): the frost made opaque. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .btn {
    background-color: var(--bg);
    background-image:
      linear-gradient(180deg, var(--a2-haze), transparent 30%),
      linear-gradient(180deg,
        color-mix(in srgb, var(--accent) var(--a2-t), transparent) 30%,
        color-mix(in srgb, var(--accent) var(--a2-b), transparent)),
      linear-gradient(var(--a2-frost), var(--a2-frost));
  }
}
/* No color-mix (older browsers): the plain accent, with the same label. */
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .btn { background: var(--accent); border-color: transparent; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
.faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 800; color: var(--text); }
nav.more { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; margin-top: 26px; font-size: 14px; }
footer { text-align: center; color: var(--faint); font-size: 13px; margin-top: 18px; }
[data-lang] { display: none; }
html[lang="ko"] [data-lang="ko"], html[lang="en"] [data-lang="en"] { display: block; }
html[lang="ko"] span[data-lang="ko"], html[lang="en"] span[data-lang="en"] { display: inline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
@media (prefers-color-scheme: dark) {
  /* Light accents in the dark: dark text on them reads better. */
  .btn, .langs button[aria-pressed="true"] { color: #0b1233; }
}
.table-wrap { overflow-x: auto; margin: 10px 0 14px; border: 1px solid var(--line); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--muted); }
th { color: var(--text); font-weight: 800; background: var(--soft); }
tr:last-child td { border-bottom: 0; }
td strong { color: var(--text); }
@media (max-width: 640px) {
  /* Phones: each row is a small card, each cell labelled. */
  .table-wrap { border: 0; overflow: visible; }
  table { min-width: 0; }
  thead { display: none; }
  table, tbody, tr, td { display: block; width: 100%; }
  tr { border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; overflow: hidden; }
  td { border-bottom: 1px solid var(--line); padding: 8px 14px; }
  td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 800; color: var(--text); margin-bottom: 2px; }
  td:first-child { background: var(--soft); }
}
