:root {
  color-scheme: light dark;
  --bg: #f5f2eb;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #ffffff;
  --text: #171713;
  --muted: #67665f;
  --line: rgba(23, 23, 19, 0.13);
  --accent: #d16f2d;
  --accent-dark: #9f4c17;
  --accent-soft: #f7e5d5;
  --shadow: 0 24px 70px rgba(37, 31, 20, 0.09);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 10% -10%, rgba(238, 160, 89, 0.22), transparent 36rem),
    radial-gradient(circle at 100% 22%, rgba(82, 108, 86, 0.12), transparent 30rem),
    var(--bg);
  font-size: 17px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

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

.site-header,
.site-footer,
.home-main,
.policy-layout {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.app-icon-link {
  width: 38px;
  height: 38px;
  display: block;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(37, 31, 20, 0.07);
  overflow: hidden;
}

.brand-icon {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.brand-name {
  color: var(--text);
  text-decoration: none;
}

nav a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

nav a[aria-current="page"] { color: var(--text); }

.home-main { padding: 94px 0 72px; }

.hero { max-width: 1000px; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: ui-rounded, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-size: clamp(2.55rem, 7vw, 5.5rem);
  line-height: 1.03;
  letter-spacing: -0.065em;
}

.hero h1 {
  font-size: clamp(1.65rem, 6vw, 5rem);
}

.hero-title-line {
  display: block;
  white-space: nowrap;
}

.hero-copy {
  max-width: 680px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 720;
  text-decoration: none;
}

.button.primary {
  color: #fff;
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  box-shadow: 0 12px 28px rgba(159, 76, 23, 0.2);
}

.button.primary:hover { color: #fff; background: var(--accent); }
.button.secondary { color: var(--text); background: var(--surface); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 90px;
}

.feature-card,
.policy-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.feature-card {
  padding: 28px;
  border-radius: 22px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--accent-dark);
  border-radius: 12px;
  background: var(--accent-soft);
  font-weight: 800;
}

.feature-card h2 {
  margin: 18px 0 6px;
  font-size: 1.18rem;
  letter-spacing: -0.025em;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.policy-layout { padding: 56px 0 72px; }

.policy-card {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 72px);
  border-radius: 28px;
}

.policy-heading {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.policy-heading h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.effective-date {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.notice {
  margin: 34px 0 42px;
  padding: 22px 24px;
  border-left: 4px solid var(--accent);
  border-radius: 0 16px 16px 0;
  background: var(--accent-soft);
}

.notice strong { color: var(--accent-dark); }
.notice p { margin: 5px 0 0; }

.policy-card section {
  padding-block: 12px 24px;
  scroll-margin-top: 20px;
}

.policy-card h2 {
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.policy-card p { margin: 0 0 14px; }
.policy-card p:last-child { margin-bottom: 0; }

.policy-card ul {
  margin: 0 0 18px;
  padding-left: 1.25em;
}

.policy-card li { margin-block: 8px; }
.policy-card li::marker { color: var(--accent); }

.contact-list {
  display: grid;
  grid-template-columns: 160px 1fr;
  margin: 0;
  border-top: 1px solid var(--line);
}

.contact-list dt,
.contact-list dd {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list dt { color: var(--muted); }
.contact-list dd { margin: 0; font-weight: 650; }

.site-footer {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 24px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
}

.site-footer p { margin: 0; }

@media (max-width: 760px) {
  body { font-size: 16px; line-height: 1.7; }
  .site-header, .site-footer, .home-main, .policy-layout { width: min(100% - 28px, 680px); }
  .site-header { min-height: 66px; }
  nav { gap: 12px; }
  .home-main { padding: 62px 0 48px; }
  .hero-copy { margin-top: 22px; }
  .feature-grid { grid-template-columns: 1fr; margin-top: 58px; }
  .feature-card { padding: 22px; }
  .policy-layout { padding: 26px 0 46px; }
  .policy-card { padding: 26px 20px 34px; border-radius: 20px; }
  .policy-heading { padding-bottom: 26px; }
  .notice { margin: 26px 0 34px; padding: 18px; }
  .contact-list { grid-template-columns: 1fr; }
  .contact-list dt { padding-bottom: 0; border-bottom: 0; }
  .contact-list dd { padding-top: 2px; }
  .site-footer { min-height: 128px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; }
}

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

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11110f;
    --surface: rgba(29, 29, 25, 0.9);
    --surface-strong: #1d1d19;
    --text: #f3f0e9;
    --muted: #b4b0a7;
    --line: rgba(255, 255, 255, 0.12);
    --accent: #f09a59;
    --accent-dark: #ffb478;
    --accent-soft: rgba(209, 111, 45, 0.15);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
  }

  .button.primary { color: #1a120d; background: var(--accent-dark); border-color: var(--accent-dark); }
  .button.primary:hover { color: #1a120d; }
}
