/* PocoPet policy site — explicit colors (fixes dark-mode white-on-white) */
:root {
  --bg: #fff8f4;
  --bg-elevated: #ffffff;
  --bg-soft: #fff0e8;
  --bg-sky: #e8f4ff;
  --text: #2a2438;
  --text-secondary: #524d62;
  --text-muted: #7a7389;
  --accent: #ff6b4a;
  --accent-dark: #e85a3a;
  --accent-soft: #ffe4dc;
  --sky: #5eb8ff;
  --sky-soft: #d8ecff;
  --mint: #6ed4a8;
  --mint-soft: #e4f8ef;
  --border: #f0e0d6;
  --link: #3d7ae8;
  --link-hover: #255ec4;
  --shadow: 0 12px 40px rgba(255, 107, 74, 0.1), 0 4px 16px rgba(42, 36, 56, 0.06);
  --shadow-lg: 0 20px 50px rgba(255, 107, 74, 0.14);
  --radius: 18px;
  --radius-sm: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
  --max: 46rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16131f;
    --bg-elevated: #221e2c;
    --bg-soft: #2c2738;
    --bg-sky: #1e2a3d;
    --text: #f8f4ff;
    --text-secondary: #d4cee8;
    --text-muted: #a39ab8;
    --accent: #ff8f6e;
    --accent-dark: #ffb89a;
    --accent-soft: #3d2a32;
    --sky: #7ec8ff;
    --sky-soft: #243548;
    --mint: #7ee4b0;
    --mint-soft: #1e3328;
    --border: #3a3548;
    --link: #8eb8ff;
    --link-hover: #b8d4ff;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.45);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 60% at 10% -10%, var(--sky-soft), transparent 55%),
    radial-gradient(ellipse 70% 50% at 95% 5%, var(--accent-soft), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, var(--mint-soft), transparent 45%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: radial-gradient(circle, var(--accent) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 70%);
  z-index: 0;
}

.site-header,
.site-main {
  position: relative;
  z-index: 1;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

.site-header {
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(42, 36, 56, 0.04);
}

.site-header__inner {
  max-width: calc(var(--max) + 3rem);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
}

.brand:hover {
  color: var(--accent-dark);
}

.brand__logo {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(255, 107, 74, 0.25);
  border: 2px solid #fff;
}

@media (prefers-color-scheme: dark) {
  .brand__logo {
    border-color: var(--border);
  }
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  font-size: 0.9rem;
}

.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.site-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
}

.hero {
  text-align: center;
  padding: 0.5rem 0 1.75rem;
}

.hero-stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.25rem;
  min-height: 11rem;
  margin: 0 auto 1rem;
  max-width: 22rem;
}

.hero-stage__pet {
  width: clamp(5.5rem, 22vw, 7.5rem);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(42, 36, 56, 0.15));
  animation: pet-bob 3.2s ease-in-out infinite;
}

.hero-stage__pet--left {
  animation-delay: 0.4s;
  margin-bottom: 0.25rem;
}

.hero-stage__pet--right {
  animation-delay: 0.9s;
  margin-bottom: 0.5rem;
}

.hero-stage__app {
  width: clamp(5rem, 18vw, 6.5rem);
  height: clamp(5rem, 18vw, 6.5rem);
  border-radius: 22%;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  border: 3px solid #fff;
  z-index: 2;
  animation: pet-bob 2.8s ease-in-out infinite;
}

@media (prefers-color-scheme: dark) {
  .hero-stage__app {
    border-color: var(--bg-soft);
  }
}

@keyframes pet-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero__badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-dark);
  background: linear-gradient(135deg, var(--accent-soft), var(--sky-soft));
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border));
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.65rem, 5vw, 2rem);
  line-height: 1.25;
}

.hero__sub {
  margin: 0 auto;
  max-width: 32rem;
  color: var(--text-secondary);
  font-size: 1.02rem;
}

.hero__sub-en {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.card-grid {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

@media (min-width: 520px) {
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow);
}

.card--link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.card--link:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  color: inherit;
}

.card__thumb {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
  margin-bottom: 0.65rem;
  filter: drop-shadow(0 6px 10px rgba(42, 36, 56, 0.12));
}

.card--policy {
  background: linear-gradient(145deg, var(--bg-elevated) 0%, var(--bg-soft) 100%);
}

.card--delete {
  background: linear-gradient(145deg, var(--bg-elevated) 0%, var(--sky-soft) 100%);
}

.card__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--text);
}

.card__desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.card__arrow {
  margin-top: 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-dark);
}

.panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin: 1.25rem 0;
  box-shadow: var(--shadow);
}

.panel--soft {
  background: var(--bg-soft);
}

.panel__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-dark);
  margin-bottom: 0.5rem;
}

.page-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.4rem, 4vw, 1.75rem);
  line-height: 1.3;
}

.page-meta {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.page-meta strong {
  color: var(--text-secondary);
}

h2 {
  margin: 2rem 0 0.65rem;
  font-size: 1.12rem;
  color: var(--text);
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--accent-soft);
}

h3 {
  margin: 1.35rem 0 0.5rem;
  font-size: 1rem;
  color: var(--text-secondary);
}

p,
li {
  color: var(--text-secondary);
}

strong {
  color: var(--text);
}

ul,
ol {
  padding-left: 1.25rem;
}

li {
  margin: 0.4rem 0;
}

.muted {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.steps {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem 1rem 1.2rem;
  margin: 1rem 0;
}

.steps strong {
  display: block;
  margin-bottom: 0.35rem;
}

.steps ol {
  margin: 0;
}

.steps li {
  font-weight: 500;
  color: var(--text);
}

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

th,
td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

tr:last-child th,
tr:last-child td {
  border-bottom: none;
}

th {
  background: var(--bg-soft);
  color: var(--text);
  font-weight: 600;
}

code {
  font-size: 0.88em;
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--border);
}

.contact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}

.contact-line a {
  font-weight: 600;
}

.site-footer {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.site-footer a {
  color: var(--text-secondary);
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent-dark);
}

.app-chip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.app-chip strong {
  color: var(--text);
}

/* —— Legal / policy pages —— */
.doc-hero {
  text-align: center;
  padding: 0.5rem 0 1.5rem;
  margin-bottom: 0.5rem;
}

.doc-hero__logo {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 22%;
  object-fit: cover;
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow-lg);
  border: 3px solid #fff;
}

@media (prefers-color-scheme: dark) {
  .doc-hero__logo {
    border-color: var(--bg-soft);
  }
}

.page-deco {
  pointer-events: none;
  position: fixed;
  z-index: 0;
  opacity: 0.12;
  width: clamp(6rem, 18vw, 9rem);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.08));
}

.page-deco--tl {
  top: 5.5rem;
  left: max(0.5rem, 2vw);
  transform: rotate(-8deg);
}

.page-deco--br {
  bottom: 1rem;
  right: max(0.5rem, 2vw);
  transform: rotate(6deg);
}

@media (max-width: 640px) {
  .page-deco {
    opacity: 0.07;
    width: 5rem;
  }
}

.feature-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.feature-strip li {
  margin: 0;
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(42, 36, 56, 0.04);
}

.panel--glass {
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  backdrop-filter: blur(8px);
}

.doc-hero .page-title {
  margin-bottom: 0.5rem;
}

.doc-hero .page-meta {
  margin-bottom: 0;
}

.summary-grid {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 560px) {
  .summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .summary-grid--wide {
    grid-column: 1 / -1;
  }
}

.summary-grid li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 0;
  padding: 0.75rem 0.85rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.summary-grid__icon {
  flex-shrink: 0;
  font-size: 1.1rem;
  line-height: 1.4;
}

.toc {
  margin: 1.25rem 0 1.75rem;
}

.toc__title {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

@media (min-width: 560px) {
  .toc__list {
    grid-template-columns: 1fr 1fr;
  }
}

.toc__list a {
  display: block;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  border: 1px solid transparent;
}

.toc__list a:hover {
  background: var(--bg-soft);
  border-color: var(--border);
  color: var(--accent-dark);
}

.section {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem 1.25rem;
  margin: 1.25rem 0;
  box-shadow: var(--shadow);
}

.section > h2 {
  margin-top: 0;
  border-bottom: none;
  padding-bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.08rem;
}

.section > h2::before {
  content: attr(data-num);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.65rem;
  height: 1.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 8px;
  flex-shrink: 0;
}

.section h3 {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--text);
}

.section > h2 + p,
.section > h2 + ul {
  margin-top: 0.65rem;
}

.callout {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  margin: 1rem 0;
  border: 1px solid var(--border);
}

.callout__icon {
  font-size: 1.25rem;
  line-height: 1.2;
  flex-shrink: 0;
}

.callout--info {
  background: var(--bg-soft);
}

.callout--warn {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.callout p {
  margin: 0;
}

.callout p + p {
  margin-top: 0.5rem;
}

.action-cards {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0;
}

@media (min-width: 520px) {
  .action-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.action-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow);
}

.action-card--primary {
  border-color: var(--accent);
  background: linear-gradient(160deg, var(--bg-elevated) 0%, var(--accent-soft) 120%);
}

.action-card__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.action-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: var(--text);
}

.action-card p {
  margin: 0;
  font-size: 0.9rem;
}

.step-flow {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step-flow li {
  position: relative;
  margin: 0 0 0.75rem;
  padding: 0.85rem 1rem 0.85rem 3rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 500;
  font-size: 0.92rem;
  counter-increment: step;
}

.step-flow li::before {
  content: counter(step);
  position: absolute;
  left: 0.85rem;
  top: 0.85rem;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.badge--ok {
  background: #e6f4ea;
  color: #1e6b3a;
}

@media (prefers-color-scheme: dark) {
  .badge--ok {
    background: #1a3324;
    color: #8fd4a6;
  }
}

.contact-panel {
  text-align: center;
  margin-top: 1.5rem;
}

.contact-panel a {
  font-size: 1.05rem;
  font-weight: 700;
}

