/*
 * Static legal pages (privacy, terms, account deletion).
 * Colors are copied from the AMBER BOARD tokens in apps/share-web/src/styles.css.
 * The site CSP allows only same-origin stylesheets: keep this file free of imports and URLs.
 */
:root {
  --canvas: #fbfaf5;
  --ink: #283347;
  --muted: #626b79;
  --primary: #202c40;
  --accent: #f2bc49;
  --soft: #fff2c9;
  --line: #e5e6e1;
  --control-line: #89919c;
  --danger: #984a40;
  --soft-line: #e8d8a2;
  --surface: #fff;
  color-scheme: light;
  font-family:
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    'Apple SD Gothic Neo',
    'Malgun Gothic',
    'Noto Sans KR',
    sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--canvas);
}
a {
  color: var(--primary);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
a:hover {
  text-decoration-color: var(--primary);
}
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 1;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.site {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.site-inner,
main,
.site-footer {
  max-width: 760px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
.site-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-size: 18px;
  font-weight: 750;
  text-decoration: none;
}
.brand img {
  width: 32px;
  height: 32px;
  display: block;
}
.site nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}
.site nav a[aria-current='page'] {
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}
main {
  padding-top: 24px;
  padding-bottom: 32px;
}
.eyebrow {
  margin: 0;
  color: var(--primary);
  font-size: 14px;
  font-weight: 650;
}
h1 {
  margin: 6px 0 8px;
  font-size: clamp(24px, 6vw, 32px);
  letter-spacing: -0.03em;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
h2 {
  margin: 0 0 12px;
  font-size: 19px;
  line-height: 1.4;
  scroll-margin-top: 16px;
}
h3 {
  margin: 18px 0 8px;
  font-size: 16px;
  line-height: 1.5;
}
p,
li,
dd {
  line-height: 1.75;
  overflow-wrap: anywhere;
}
p {
  margin: 0 0 12px;
}
ul,
ol {
  margin: 0 0 12px;
  padding-left: 22px;
}
li + li {
  margin-top: 4px;
}
.meta {
  color: var(--muted);
  font-size: 14px;
}
.lead {
  font-size: 16px;
}
section {
  margin-top: 16px;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
section > :last-child {
  margin-bottom: 0;
}
.toc {
  background: var(--soft);
  border-color: var(--soft-line);
}
.toc ol {
  columns: 2 240px;
  column-gap: 24px;
}
.notice {
  margin: 12px 0;
  padding: 12px 14px;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: var(--soft);
}
.warning {
  border-left-color: var(--danger);
}
.placeholder {
  padding: 1px 6px;
  border: 1px dashed var(--danger);
  border-radius: 6px;
  background: var(--soft);
  color: var(--danger);
  font-weight: 650;
  white-space: normal;
}
.steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}
.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 40px;
  min-height: 28px;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--primary);
  font-weight: 750;
}
.label {
  padding: 1px 6px;
  border: 1px solid var(--control-line);
  border-radius: 6px;
  background: var(--canvas);
  font-weight: 650;
  white-space: nowrap;
}
.table-wrap {
  margin: 0 0 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
/* Five-column tables fit the page width; phones stack each row so no column hides off screen. */
.table-wrap.wide table {
  table-layout: fixed;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
}
caption {
  padding-bottom: 6px;
  color: var(--muted);
  text-align: left;
}
th,
td {
  padding: 8px 10px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}
th {
  background: var(--canvas);
  font-weight: 650;
}
dl {
  margin: 0 0 12px;
}
dt {
  font-weight: 650;
}
dd {
  margin: 0 0 8px;
}
.business dl {
  display: grid;
  grid-template-columns: minmax(120px, max-content) 1fr;
  gap: 4px 16px;
}
.business dd {
  margin: 0;
}
.site-footer {
  padding-top: 8px;
  padding-bottom: 40px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}
@media (max-width: 640px) {
  .table-wrap.wide thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .table-wrap.wide table,
  .table-wrap.wide tbody,
  .table-wrap.wide tr,
  .table-wrap.wide td {
    display: block;
    width: 100%;
  }
  .table-wrap.wide tr {
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
  }
  .table-wrap.wide td {
    border: 0;
    border-top: 1px solid var(--line);
  }
  .table-wrap.wide td:first-child {
    border-top: 0;
    background: var(--canvas);
    font-weight: 650;
  }
  .table-wrap.wide td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
  }
}
@media (max-width: 480px) {
  section {
    padding: 16px 14px;
  }
  .business dl {
    grid-template-columns: 1fr;
  }
  .business dt {
    margin-top: 6px;
  }
}
@media print {
  .site nav,
  .skip {
    display: none;
  }
  section {
    break-inside: avoid;
    border-color: #bbb;
  }
}
