/* Terms, privacy and support pages. Same tokens, type and nav pill as the landing page (apps/landing). */
:root {
  color-scheme: light;
  --ink: #1b1918;
  --ink-2: #4c4540;
  --muted: #776d66;
  --line: #ece6e0;
  --bg: #ffffff;
  --bg-soft: #faf7f4;
  --coral: #ff6b57;
  --coral-ink: #c2412f;
  --peach: #fff0ea;
  --focus: #2a78d6;
  --gutter: 20px;
  --max: 1040px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  font-family:
    "Pretendard Variable",
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    "Apple SD Gothic Neo",
    sans-serif;
  font-size: 16px;
  line-height: 1.75;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  /* The same soft peach and mint glow the landing hero sits on. */
  background:
    radial-gradient(60rem 28rem at 15% -8rem, rgba(255, 107, 87, 0.12), transparent 70%),
    radial-gradient(48rem 24rem at 95% -6rem, rgba(27, 175, 122, 0.08), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
}

a {
  color: var(--coral-ink);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--ink);
}

a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 55%, transparent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Floating nav pill, as on the landing page. */
.site-header {
  position: sticky;
  top: 12px;
  z-index: 10;
  padding: 0 var(--gutter);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(600px, 100%);
  min-height: 52px;
  margin: 12px auto 0;
  padding: 6px 6px 6px 16px;
  border: 1px solid rgba(27, 25, 24, 0.06);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 30px rgba(27, 25, 24, 0.06);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

/* The app icon from the landing nav replaces the old "품" letter mark. */
.brand__mark {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--coral) url("/static/favicon.png") center / cover;
  color: transparent;
  font-size: 0;
}

.header-nav {
  display: flex;
  gap: 2px;
  font-size: 14px;
  font-weight: 600;
}

.header-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  line-height: 1.2;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.header-nav a:hover {
  background: var(--bg-soft);
  color: var(--ink);
}

.header-nav a[aria-current="page"] {
  background: var(--ink);
  color: #fff;
}

.page,
.site-footer__inner {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.page {
  padding-block: clamp(64px, 10vw, 120px) 96px;
}

.hero {
  display: grid;
  justify-items: start;
  gap: 18px;
  margin-bottom: clamp(56px, 8vw, 96px);
}

.eyebrow {
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--peach);
  color: var(--coral-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.035em;
  line-height: 1.2;
}

h1 {
  max-width: 14ch;
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  line-height: 1.1;
}

h2 {
  font-size: 20px;
  font-weight: 700;
}

.hero__lead {
  max-width: 56ch;
  margin: 0;
  color: var(--ink-2);
  font-size: clamp(17px, 2vw, 19px);
}

.meta {
  margin: 4px 0 0;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.document {
  display: grid;
  gap: 0;
}

/* Title on the left stays in view while its long body scrolls past. */
.section {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 24px 56px;
  padding-block: 40px;
  border-top: 1px solid var(--line);
}

.section > h2 {
  position: sticky;
  top: 96px;
  align-self: start;
}

.section__body {
  color: var(--ink-2);
  font-size: 16.5px;
  line-height: 1.85;
}

.section__body strong {
  color: var(--ink);
}

.section__body > :first-child {
  margin-top: 0;
}

.section__body > :last-child {
  margin-bottom: 0;
}

p,
li {
  max-width: 68ch;
}

ul,
ol {
  margin: 0;
  padding-left: 1.2em;
}

li + li {
  margin-top: 8px;
}

li::marker {
  color: var(--coral);
}

/* Contact card, like the landing page's colored cards. */
.contact-block {
  margin-bottom: 40px;
  padding: clamp(28px, 5vw, 48px);
  border-radius: 32px;
  background: var(--peach);
}

.document > .section + .contact-block {
  margin: 40px 0 0;
}

.contact-block h2 {
  font-size: clamp(24px, 3vw, 32px);
}

.contact-block p {
  max-width: 56ch;
  margin: 12px 0 0;
  color: var(--ink-2);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: scale 0.15s ease;
}

.contact-link::after {
  content: "→";
}

.contact-link:hover {
  color: #fff;
}

.contact-link:active {
  scale: 0.97;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 40px max(56px, env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 14px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
}

/* Tables used by the privacy policy (retention periods, cross-border transfer). */
.legal-table-wrap {
  margin: 16px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  -webkit-overflow-scrolling: touch;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.6;
}

.legal-table th,
.legal-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-table tr:last-child td {
  border-bottom: 0;
}

.legal-table th {
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .section {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding-block: 32px;
  }

  .section > h2 {
    position: static;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 16px;
  }

  .site-header__inner {
    padding-left: 12px;
  }

  .brand span:last-child {
    display: none;
  }

  .header-nav a {
    padding: 8px 12px;
  }

  .section__body {
    font-size: 16px;
  }
}

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