:root {
  color-scheme: light;
  --bg: #EEF0F3;
  --surface: #FFFFFF;
  --surface-alt: #F5F7FA;
  --ink: #121212;
  --muted: #4E5460;
  --line: #D8DCE3;
  --accent: #FF5E20;
  --accent-hover: #E84E14;
  --accent-text: #BA3C0D;
  --safety-bg: #FFF5F0;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-pill: 999px;
}

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

html {
  background: var(--bg);
  color: var(--ink);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC", "PingFang TC", "Hiragino Sans GB", "Microsoft JhengHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-text);
  text-underline-offset: 0.2em;
}

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

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--surface);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  left: 16px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.header-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding-block: 16px;
}

.wordmark {
  margin-right: auto;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.2;
}

.wordmark span {
  color: var(--accent);
}

.site-nav,
.language-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.site-nav a,
.language-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.site-nav a:hover,
.language-nav a:hover {
  background: var(--surface);
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  border-color: var(--line);
}

.language-nav {
  padding-left: 8px;
  border-left: 1px solid var(--line);
}

.language-nav a {
  padding: 8px 12px;
  font-size: 0.875rem;
}

.language-nav a[aria-current="true"] {
  color: var(--accent-text);
  font-weight: 700;
  background: var(--surface);
  border-color: var(--line);
}

main {
  flex: 1;
  padding-block: clamp(24px, 4vw, 44px);
}

main:focus {
  outline: none;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.intro {
  margin: 0;
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 62ch;
}

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 150ms ease, transform 150ms ease;
}

.action:hover {
  background: var(--accent-hover);
  color: var(--ink);
}

.action:active {
  transform: translateY(1px);
}

/* Overview */
.overview-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: clamp(24px, 4.5vw, 48px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(1.9rem, 3.8vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.garment-board {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 12px;
}

.garment-board img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface-alt);
}

.garment-board img:first-child {
  grid-row: span 2;
  height: 100%;
}

.features {
  margin-top: clamp(24px, 4vw, 40px);
  scroll-margin-top: 24px;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-list li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.feature-list h2,
.feature-list h3 {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.feature-headline {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.feature-list p:last-child {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
}

.overview-note {
  margin: 20px 0 0;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Legal Documents */
.document-head {
  padding: clamp(24px, 4vw, 40px);
}

.document-head h1 {
  margin: 0 0 12px;
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.document-head .action {
  margin-top: 20px;
}

.document-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px 24px;
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.document-meta dt {
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.document-meta dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.document-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

.contents {
  position: sticky;
  top: 20px;
  padding: 20px;
}

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

.contents ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contents a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}

.contents a:hover {
  background: var(--surface-alt);
  color: var(--accent-text);
}

.document-text {
  padding: clamp(24px, 4vw, 40px);
}

.legal-section {
  scroll-margin-top: 24px;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.legal-section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.legal-section h2 {
  margin: 0 0 14px;
  font-size: 1.3rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 750;
}

.legal-section p {
  margin: 0 0 14px;
  max-width: 72ch;
  color: var(--ink);
}

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

.mode {
  padding: 14px 16px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.mode strong {
  display: inline-block;
  margin-right: 6px;
  color: var(--ink);
}

.provider-links {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.provider-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface-alt);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.provider-links a:hover {
  border-color: var(--accent-text);
  background: var(--surface);
}

/* Support */
.support-section {
  margin-top: 24px;
  padding: clamp(24px, 4vw, 36px);
}

.support-section h2 {
  margin: 0 0 14px;
  font-size: 1.3rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.support-section p {
  margin: 0 0 14px;
  max-width: 72ch;
}

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

.safety {
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--safety-bg);
  font-weight: 600;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

thead th {
  text-align: left;
  padding: 12px 14px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid var(--ink);
}

tbody th,
tbody td {
  text-align: left;
  vertical-align: top;
  padding: 16px 14px;
  border-bottom: 1px solid var(--line);
}

tbody th {
  width: 28%;
  min-width: 150px;
  font-weight: 700;
  color: var(--ink);
}

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

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-layout {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  padding-block: 24px 36px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 960px) {
  .overview-hero,
  .document-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contents {
    position: static;
  }

  .feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .language-nav {
    padding-left: 0;
    border-left: none;
    width: 100%;
    padding-top: 4px;
    border-top: 1px solid var(--line);
  }

  .feature-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .garment-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .garment-board img:first-child {
    grid-row: auto;
    height: auto;
  }

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

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

  tbody tr {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  tbody tr:last-child {
    border-bottom: none;
  }

  tbody th,
  tbody td {
    padding: 4px 0;
    border-bottom: none;
    min-width: 0;
  }
}

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

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