/* Privacy Policy page styles */

/* Colour theme: Korea (blue and red) */

:root {
  --bg: #f2f4f8;
  --surface: #ffffff;
  --surface-alt: #f7f9fc;
  --text: #2a3344;
  --muted: #5d687b;
  --heading: #0d1730;
  --border: #e1e6ee;
  --border-strong: #cdd5e2;
  --accent: #0047a0;
  --accent-hover: #00357a;
  --accent-soft: #e5edf8;
  --accent-ink: #003f8f;
  --mark: #cd2e3a;
  --hero-from: #001433;
  --hero-mid: #002f6c;
  --hero-to: #0047a0;
  --underline: rgba(0, 71, 160, 0.35);
  --flag: linear-gradient(90deg, #cd2e3a 0 50%, #0047a0 50% 100%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0f1c;
    --surface: #111a2b;
    --surface-alt: #162036;
    --text: #cfd6e4;
    --muted: #95a1b6;
    --heading: #f2f5fb;
    --border: #222e46;
    --border-strong: #2d3b58;
    --accent: #77a8ff;
    --accent-hover: #a2c3ff;
    --accent-soft: #13284a;
    --accent-ink: #8fb8ff;
    --mark: #ff6b75;
    --hero-from: #000b1d;
    --hero-mid: #001f4a;
    --hero-to: #003a85;
    --underline: rgba(119, 168, 255, 0.4);
  }
}

:root {
  color-scheme: light dark;
  --tag-bg: #fff1e0;
  --tag-text: #8f4300;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang HK", "Microsoft JhengHei", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --tag-bg: #3b2610;
    --tag-text: #ffc98f;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.25);
  }
}

/* Base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
  color: var(--heading);
  font-weight: 700;
  line-height: 1.3;
  text-wrap: balance;
}

h2 {
  margin: 0 0 16px;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

h3 {
  margin: 32px 0 10px;
  font-size: 1.125rem;
}

h4 {
  margin: 26px 0 8px;
  font-size: 1rem;
}

h2 + h3,
h3 + h4 {
  margin-top: 14px;
}

p {
  margin: 0 0 14px;
}

p,
li,
dd {
  text-wrap: pretty;
}

ul {
  margin: 0 0 16px;
  padding-left: 1.4em;
}

li {
  margin: 6px 0;
  padding-left: 2px;
}

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

strong,
b {
  font-weight: 600;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--underline);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover {
  color: var(--accent-hover);
  text-decoration-color: currentColor;
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

address {
  font-style: normal;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  flex: none;
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

/* Header */

.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 20px 116px;
  color: #ffffff;
  background:
    radial-gradient(900px 420px at 100% 0%, rgba(255, 255, 255, 0.16), transparent 60%),
    linear-gradient(135deg, var(--hero-from) 0%, var(--hero-mid) 55%, var(--hero-to) 100%);
}

.hero__inner {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.hero__art {
  position: absolute;
  top: -34px;
  right: -48px;
  width: 280px;
  height: 280px;
  stroke-width: 1.1;
  opacity: 0.1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 5px 16px 5px 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--hero-mid);
}

.brand__mark .icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.hero h1 {
  margin: 22px 0 12px;
  color: #ffffff;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero h1 .pre {
  display: block;
  margin-bottom: 8px;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0;
  opacity: 0.85;
}

.hero h1 .app {
  display: block;
  font-size: clamp(2.1rem, 6vw, 3.25rem);
}

.hero__lead {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.125rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 24px 0 0;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
}

.chip .icon {
  width: 16px;
  height: 16px;
  opacity: 0.9;
}

/* Layout */

.page {
  position: relative;
  max-width: 800px;
  margin: -76px auto 0;
  padding: 0 16px 24px;
}

.card {
  margin: 0 0 20px;
  padding: 36px 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card > :last-child,
.block > :last-child {
  margin-bottom: 0;
}

.card h2:not(.toc__title) {
  position: relative;
  padding-left: 16px;
}

.card h2:not(.toc__title)::before {
  content: "";
  position: absolute;
  top: 0.22em;
  bottom: 0.22em;
  left: 0;
  width: 4px;
  border-radius: 4px;
  background: var(--mark);
}

.block + .block {
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px solid var(--border);
}

.part {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 40px 0 20px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.part::before,
.part::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-strong);
}

/* Intro and contents */

.intro {
  position: relative;
  overflow: hidden;
}

/* Thin ribbon in the colours of the country flag */
.intro::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--flag);
}

.notice {
  display: flex;
  gap: 14px;
  margin: 0 0 30px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
}

.notice > .icon {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--accent-ink);
}

.notice p {
  margin: 0;
}

.notice p + p {
  margin-top: 4px;
}

.toc__title {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc ol {
  margin: 0 -10px;
  padding: 0;
  list-style: none;
  columns: 2 250px;
  column-gap: 24px;
}

.toc li {
  margin: 0;
  padding: 0;
  break-inside: avoid;
}

.toc a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--text);
  line-height: 1.45;
  text-decoration: none;
}

.toc a .icon {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--accent);
  stroke-width: 2.2;
  transition: transform 0.15s ease;
}

.toc a:hover {
  background: var(--accent-soft);
  color: var(--heading);
}

.toc a:hover .icon {
  transform: translateX(2px);
}

.print-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 26px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
}

.print-note .icon {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

/* Summary */

.purposes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.purpose {
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
}

.purpose h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.purpose__service {
  margin: 0 0 4px;
  color: var(--heading);
  font-size: 0.9375rem;
  font-weight: 600;
}

.purpose__data {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.badge {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.badge .icon {
  width: 22px;
  height: 22px;
}

.contact {
  display: flex;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
}

.contact h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

/* Owner details */

.owner__name {
  margin: 0 0 10px;
  color: var(--heading);
  font-size: 1.0625rem;
  font-weight: 700;
}

.owner__row {
  display: flex;
  gap: 10px;
  margin: 0 0 8px;
}

.owner__row:last-child {
  margin-bottom: 0;
}

.owner__row .icon {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  color: var(--accent);
}

/* Expandable panels */

.accordions {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.accordions:last-child {
  margin-bottom: 0;
}

.acc {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.acc > summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: calc(var(--radius-sm) - 1px);
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.acc > summary::-webkit-details-marker {
  display: none;
}

.acc > summary:hover {
  background: var(--surface-alt);
}

.acc > summary h3,
.acc > summary h4 {
  flex: 1;
  margin: 0;
  font-size: 1.0625rem;
}

.acc .badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.acc .badge .icon {
  width: 20px;
  height: 20px;
}

.chevron {
  width: 20px;
  height: 20px;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.acc[open] > summary {
  border-bottom: 1px solid var(--border);
  border-radius: calc(var(--radius-sm) - 1px) calc(var(--radius-sm) - 1px) 0 0;
}

.acc[open] .chevron {
  transform: rotate(180deg);
}

.acc__body {
  padding: 20px 22px 22px;
}

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

.acc[open] .acc__body {
  animation: reveal 0.2s ease-out;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* Services and facts */

.service {
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
}

.service h4 {
  margin: 0 0 8px;
}

.service__provider {
  color: var(--muted);
  font-weight: 500;
}

.facts {
  margin: 16px 0 0;
}

.facts > div {
  display: grid;
  grid-template-columns: minmax(150px, 34%) 1fr;
  gap: 4px 20px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.facts--plain {
  margin-top: 0;
}

.facts--plain > div:first-child {
  padding-top: 0;
  border-top: 0;
}

.facts > div:last-child {
  padding-bottom: 0;
}

.facts dt {
  padding-top: 2px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.5;
}

.facts dd {
  margin: 0;
}

.facts dd ul {
  margin: 0;
}

.facts dd li:first-child {
  margin-top: 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags li {
  margin: 0;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--tag-text);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.6;
}

.info {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font: italic 700 11px/1 Georgia, "Times New Roman", serif;
  text-decoration: none;
  vertical-align: 1px;
}

a.info:hover {
  background: var(--accent);
  color: var(--surface);
}

.note {
  color: var(--muted);
  font-size: 0.9375rem;
}

.note .info {
  margin: 0 6px 0 0;
}

.emphasis {
  margin: 0 0 16px;
  padding: 16px 18px;
  border-left: 3px solid var(--mark);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface-alt);
}

.emphasis p:last-child {
  margin-bottom: 0;
}

/* Definitions */

.glossary {
  margin: 4px 0 0;
}

.glossary > div {
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.glossary > div:first-child {
  padding-top: 4px;
  border-top: 0;
}

.glossary dt {
  margin: 0 0 4px;
  color: var(--heading);
  font-weight: 700;
}

.glossary dd {
  margin: 0;
}

.legal-info {
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
}

.legal-info h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.legal-info p:last-child {
  margin-bottom: 0;
}

/* Key points */

.key-points {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.key-points li {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
}

.key-points .icon {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--accent-ink);
  stroke-width: 2.4;
}

/* Legal basis table */

.table-wrap {
  margin: 16px 0 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.basis {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.5;
}

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

.basis th {
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.basis tbody tr:last-child td {
  border-bottom: 0;
}

.basis td:first-child strong {
  display: block;
  color: var(--heading);
}

.basis td:first-child span {
  color: var(--muted);
}

/* Footer */

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 800px;
  margin: 4px auto 0;
  padding: 8px 24px 48px;
  color: var(--muted);
  font-size: 0.875rem;
}

.footer p {
  margin: 0;
}

.footer__updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer__updated .icon {
  width: 16px;
  height: 16px;
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
}

.to-top .icon {
  width: 16px;
  height: 16px;
}

/* Small screens */

@media (max-width: 720px) {
  .table-wrap {
    border: 0;
    border-radius: 0;
    overflow: visible;
  }

  .basis thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .basis,
  .basis tbody,
  .basis tr,
  .basis td {
    display: block;
    width: 100%;
  }

  .basis tr {
    margin-bottom: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
  }

  .basis td {
    display: grid;
    grid-template-columns: 6.5rem 1fr;
    gap: 10px;
    padding: 10px 14px;
  }

  .basis td::before {
    content: attr(data-label);
    padding-top: 1px;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .basis td:first-child {
    display: block;
    background: var(--surface-alt);
  }

  .basis td:first-child::before {
    content: none;
  }

  .basis tbody tr:last-child td {
    border-bottom: 1px solid var(--border);
  }

  .basis tbody tr td:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 40px 16px 96px;
  }

  .hero__art {
    top: -40px;
    right: -70px;
    width: 200px;
    height: 200px;
  }

  .hero h1 {
    margin-top: 18px;
  }

  .hero h1 .pre,
  .hero__lead {
    font-size: 1rem;
  }

  .page {
    margin-top: -64px;
    padding: 0 10px 16px;
  }

  .card {
    margin-bottom: 14px;
    padding: 24px 18px;
    border-radius: 14px;
  }

  h2 {
    font-size: 1.3125rem;
  }

  h3 {
    margin-top: 26px;
    font-size: 1.0625rem;
  }

  .card h2:not(.toc__title) {
    padding-left: 14px;
  }

  .block + .block {
    margin-top: 26px;
    padding-top: 26px;
  }

  .part {
    margin: 30px 8px 16px;
  }

  .notice {
    gap: 10px;
    padding: 14px;
  }

  .toc ol {
    margin: 0 -8px;
  }

  .toc a {
    padding: 6px 8px;
  }

  .purpose {
    padding: 14px;
  }

  .contact {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }

  .acc > summary {
    gap: 12px;
    padding: 12px;
  }

  .acc .badge {
    width: 34px;
    height: 34px;
  }

  .acc .badge .icon {
    width: 18px;
    height: 18px;
  }

  .acc > summary h3,
  .acc > summary h4 {
    font-size: 1rem;
  }

  .acc__body {
    padding: 16px 14px 18px;
  }

  .service {
    padding: 14px;
  }

  .facts > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .emphasis {
    padding: 14px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 4px 18px 36px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Print */

@media print {
  :root {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-alt: #ffffff;
    --text: #111111;
    --muted: #444444;
    --heading: #000000;
    --border: #cccccc;
    --border-strong: #cccccc;
    --accent: #000000;
    --mark: #000000;
    --accent-ink: #000000;
    --accent-soft: #ffffff;
    --underline: #999999;
    --tag-bg: #ffffff;
    --tag-text: #000000;
  }

  body {
    background: #ffffff;
    font-size: 10.5pt;
    line-height: 1.5;
  }

  .hero {
    padding: 0 0 12pt;
    border-bottom: 1pt solid #000000;
    background: none;
    color: #000000;
  }

  .hero h1,
  .hero__lead {
    color: #000000;
  }

  .brand,
  .chip {
    border-color: #999999;
    background: none;
  }

  .hero__art,
  .intro::before,
  .toc,
  .print-note,
  .to-top,
  .chevron {
    display: none;
  }

  .page {
    max-width: none;
    margin: 16pt 0 0;
    padding: 0;
  }

  .card {
    margin: 0 0 18pt;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .purpose,
  .contact,
  .service {
    break-inside: avoid;
  }

  .footer {
    padding: 12pt 0 0;
  }
}

@media print {
  details::details-content {
    display: block;
    content-visibility: visible;
  }
}
