:root {
  color-scheme: light;
  --ink: #111111;
  --muted: #696969;
  --line: #dedede;
  --paper: #ffffff;
  --soft: #f5f5f3;
  --red: #e9352b;
  --blue: #1769d2;
  --purple: #7251b5;
  --green: #16a05d;
  font-family: Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
a { color: inherit; }

.site-header,
.site-footer,
main {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 7px;
  background: var(--paper);
}

.brand-mark i:nth-child(1) { background: var(--red); }
.brand-mark i:nth-child(2) { background: var(--paper); }
.brand-mark i:nth-child(3) { background: var(--ink); }
.brand-mark i:nth-child(4) { background: var(--blue); }

.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { font-size: 20px; letter-spacing: .08em; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: 11px; letter-spacing: .06em; }

.status-dot,
.document-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

.status-dot i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

.hero { padding: 110px 0 120px; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 22px; font-size: 12px; font-weight: 800; letter-spacing: .15em; color: var(--blue); }
.hero h1 { margin: 0; max-width: 850px; font-size: clamp(52px, 8vw, 105px); line-height: .96; letter-spacing: -.065em; }
.hero-copy { margin: 34px 0 0; max-width: 620px; color: var(--muted); font-size: clamp(17px, 2vw, 22px); line-height: 1.65; }

.legal-grid { padding: 100px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 36px; }
.section-heading .eyebrow { margin-bottom: 8px; }
.section-heading h2 { margin: 0; font-size: 36px; letter-spacing: -.04em; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.info-card { min-height: 260px; display: flex; flex-direction: column; padding: 30px; border: 1px solid var(--line); border-radius: 18px; text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.info-card:hover { transform: translateY(-3px); border-color: #b8b8b8; box-shadow: 0 16px 38px rgba(0,0,0,.06); }
.info-card > span { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.info-card h3 { margin: 42px 0 10px; font-size: 24px; letter-spacing: -.03em; }
.info-card p { margin: 0; max-width: 440px; color: var(--muted); line-height: 1.65; }
.info-card b { margin-top: auto; padding-top: 24px; color: var(--blue); font-size: 13px; }

.operator-card { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-bottom: 100px; padding: 48px; border-radius: 22px; background: var(--ink); color: white; }
.operator-card .eyebrow { color: #76aaf0; }
.operator-card h2 { margin: 0; font-size: 34px; letter-spacing: -.04em; }
.operator-card h2 small { display: block; margin-top: 8px; color: #aaa; font-size: 15px; font-weight: 500; }
.operator-card dl { margin: 0; }
.operator-card dl div { display: grid; grid-template-columns: 90px 1fr; padding: 14px 0; border-bottom: 1px solid #333; }
.operator-card dt { color: #999; }
.operator-card dd { margin: 0; overflow-wrap: anywhere; }

.site-footer { min-height: 110px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer a { text-underline-offset: 3px; }

.legal-shell { min-height: 100vh; }
.legal-main { width: min(900px, calc(100% - 48px)); padding: 72px 0 110px; }
.legal-back { display: inline-flex; margin-bottom: 44px; color: var(--muted); font-size: 13px; text-decoration: none; }
.legal-head { padding-bottom: 42px; border-bottom: 1px solid var(--line); }
.legal-head h1 { margin: 18px 0 16px; font-size: clamp(40px, 7vw, 68px); line-height: 1.02; letter-spacing: -.055em; }
.legal-summary { max-width: 720px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 16px 24px; margin-top: 24px; color: var(--muted); font-size: 12px; }
.document-badge { border-color: #efc98c; background: #fff8ec; color: #8b5700; letter-spacing: 0; }
.notice { margin: 34px 0 52px; padding: 24px; border-left: 4px solid var(--red); background: #fff6f5; }
.notice h2 { margin: 0 0 9px; font-size: 16px; }
.notice p { margin: 0; color: #5d4b49; line-height: 1.7; }
.legal-section { padding: 36px 0; border-top: 1px solid var(--line); }
.legal-section:first-of-type { border-top: 0; }
.legal-section h2 { margin: 0 0 18px; font-size: 23px; letter-spacing: -.03em; }
.legal-section p,
.legal-section li { color: #3e3e3e; font-size: 15px; line-height: 1.85; }
.legal-section p { margin: 0 0 14px; }
.legal-section ul { margin: 0; padding-left: 22px; }
.legal-section li + li { margin-top: 7px; }
.language-nav { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 34px; }
.language-nav a { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 11px; font-weight: 650; text-decoration: none; }
.language-nav a[aria-current="page"] { border-color: var(--ink); background: var(--ink); color: white; }
.provider-link { display: grid; gap: 6px; margin-top: 22px; padding: 16px 18px; border: 1px solid #dce7f7; border-radius: 12px; background: #f5f9ff; text-decoration: none; }
.provider-link span { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.provider-link strong { font-size: 13px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 16px 22px; margin-top: 54px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 13px; }
.legal-nav a { text-underline-offset: 4px; }

.deletion-portal { margin: 46px 0 56px; padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--soft); }
.deletion-portal .eyebrow { margin-bottom: 12px; }
.deletion-portal h2 { margin: 0; font-size: 27px; letter-spacing: -.035em; }
.deletion-portal-copy { max-width: 690px; margin: 12px 0 24px; color: var(--muted); line-height: 1.7; }
.deletion-provider-actions, .deletion-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.deletion-provider-button, .deletion-danger-button, .deletion-link-button { min-height: 48px; border: 0; border-radius: 10px; padding: 0 18px; font: inherit; font-weight: 750; cursor: pointer; }
.deletion-provider-button { border: 1px solid var(--line); background: white; color: var(--ink); }
.deletion-provider-button:hover { border-color: #a9a9a9; }
.deletion-account { display: grid; gap: 5px; margin: 0 0 20px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.deletion-account span, .deletion-field span { color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .05em; }
.deletion-account strong { overflow-wrap: anywhere; }
.deletion-portal code { padding: 3px 6px; border-radius: 5px; background: white; color: var(--ink); font-weight: 800; }
.deletion-field { display: grid; gap: 7px; margin-top: 20px; }
.deletion-field input { width: 100%; min-height: 50px; border: 1px solid #bdbdbd; border-radius: 9px; padding: 0 14px; background: white; color: var(--ink); font: inherit; }
.deletion-field input:focus { outline: 2px solid rgba(23, 105, 210, .25); border-color: var(--blue); }
.deletion-checkbox { display: flex; align-items: flex-start; gap: 10px; margin: 17px 0; color: #3e3e3e; line-height: 1.55; }
.deletion-checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); }
.deletion-danger-button { background: var(--red); color: white; }
.deletion-danger-button:disabled { background: #c7c7c7; cursor: not-allowed; }
.deletion-link-button { background: transparent; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.deletion-status { min-height: 24px; margin: 18px 0 0; color: var(--green); font-size: 14px; font-weight: 700; line-height: 1.55; }
.deletion-status-error { color: var(--red); }
.deletion-apple-fallback { margin: 14px 0 0; padding: 14px 16px; border-left: 3px solid #d68b00; background: #fff8e9; color: #644700; font-size: 13px; line-height: 1.65; }
.deletion-apple-fallback a { font-weight: 800; }
[hidden] { display: none !important; }

.error-page { min-height: 100vh; display: grid; place-items: center; background: var(--soft); }
.error-card { width: min(640px, calc(100% - 48px)); text-align: center; }
.error-card h1 { margin: 12px 0 32px; font-size: clamp(34px, 6vw, 62px); letter-spacing: -.05em; }
.pixel-404 { width: 70px; aspect-ratio: 1; display: inline-block; margin-bottom: 28px; background: linear-gradient(135deg, var(--red) 0 50%, var(--blue) 50%); }
.button { display: inline-flex; padding: 13px 18px; border-radius: 9px; background: var(--ink); color: white; text-decoration: none; }

@media (max-width: 720px) {
  .site-header, .site-footer, main { width: min(100% - 30px, 1180px); }
  .site-header { min-height: 78px; }
  .legal-shell .site-header { align-items: flex-start; flex-direction: column; justify-content: center; gap: 12px; padding: 17px 0; }
  .legal-shell .document-badge { max-width: 100%; white-space: normal; }
  .status-dot { padding: 7px 9px; font-size: 9px; }
  .hero { padding: 72px 0 80px; }
  .hero h1 { font-size: clamp(47px, 15vw, 72px); }
  .legal-grid { padding: 72px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .info-card { min-height: 230px; }
  .operator-card { grid-template-columns: 1fr; gap: 36px; margin-bottom: 72px; padding: 30px; }
  .site-footer { align-items: flex-start; flex-direction: column; justify-content: center; padding: 28px 0; }
  .legal-main { width: min(100% - 30px, 900px); padding-top: 48px; }
  .legal-head h1 { font-size: 45px; }
  .notice { padding: 20px; }
  .deletion-portal { padding: 22px 18px; }
  .deletion-provider-actions, .deletion-actions { flex-direction: column; }
  .deletion-provider-button, .deletion-danger-button, .deletion-link-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .info-card { transition: none; }
}
