:root {
  --paper: #f7f7f3;
  --ink: #151615;
  --muted: #5e625f;
  --line: #d7dad5;
  --accent: #e43934;
  --accent-dark: #b92522;
  --green: #0f6c4d;
  --white: #ffffff;
  --max: 1180px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  width: fit-content;
  color: inherit;
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
}

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

.site-nav {
  display: flex;
  gap: 32px;
}

.site-nav a,
.footer-nav a {
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.footer-nav a:hover,
.footer-nav a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.language-switch {
  justify-self: end;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 4px;
  overflow: hidden;
}

.language-switch button {
  min-width: 48px;
  min-height: 34px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.language-switch button:first-child {
  border-left: 0;
}

.language-switch button[aria-pressed="true"] {
  background: var(--white);
  color: var(--ink);
}

.hero {
  position: relative;
  display: flex;
  min-height: min(82vh, 780px);
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center 46%;
}

.hero-shade {
  background: linear-gradient(90deg, rgba(8, 9, 8, 0.88) 0%, rgba(8, 9, 8, 0.56) 45%, rgba(8, 9, 8, 0.08) 78%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
  padding: 132px 0 88px;
}

.eyebrow {
  margin: 0 0 16px;
  color: #bfe8d7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--green);
}

.hero h1 {
  max-width: 800px;
  margin: 0;
  font-size: 76px;
  line-height: 0.94;
  letter-spacing: 0;
}

.registered-name {
  max-width: 630px;
  margin: 20px 0 0;
  font-size: 18px;
  font-weight: 750;
}

.hero-copy {
  max-width: 600px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.button-primary {
  background: var(--accent);
  color: var(--white);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-dark);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.18);
  color: var(--white);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--white);
  color: var(--ink);
}

.image-credit {
  position: absolute;
  right: 18px;
  bottom: 12px;
  z-index: 3;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
}

.image-credit a {
  color: inherit;
}

.identity-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--ink);
  color: var(--white);
}

.identity-band > div {
  min-width: 0;
  padding: 28px max(24px, calc((100vw - var(--max)) / 6));
  border-left: 1px solid #343734;
}

.identity-band > div:first-child {
  border-left: 0;
}

.identity-band span,
.identity-band strong {
  display: block;
}

.identity-band span {
  margin-bottom: 4px;
  color: #aeb3ae;
  font-size: 12px;
}

.identity-band strong {
  overflow-wrap: anywhere;
  font-size: 15px;
}

.section {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
  padding: 104px 0;
}

.section-heading {
  max-width: 720px;
}

.section-heading h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 64px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-grid article {
  padding: 32px;
  border-left: 1px solid var(--line);
}

.service-grid article:first-child {
  padding-left: 0;
  border-left: 0;
}

.service-grid article:nth-child(3n + 1) {
  padding-left: 0;
  border-left: 0;
}

.service-grid article:nth-child(n + 4) {
  border-top: 1px solid var(--line);
}

.service-number {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.service-grid h3 {
  margin: 28px 0 10px;
  font-size: 21px;
}

.service-grid p {
  margin: 0;
  color: var(--muted);
}

.data-section {
  border-top: 1px solid var(--line);
  background: var(--white);
}

.data-inner {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
  padding: 96px 0;
}

.data-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
  margin-top: 54px;
}

.data-principles article {
  padding-top: 22px;
  border-top: 3px solid var(--accent);
}

.data-principles h3 {
  margin: 0 0 10px;
  font-size: 19px;
}

.data-principles p {
  margin: 0;
  color: var(--muted);
}

.messaging-section {
  background: var(--green);
  color: var(--white);
}

.messaging-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
  padding: 96px 0;
}

.messaging-section h2 {
  font-size: 42px;
  line-height: 1.12;
}

.messaging-copy {
  align-self: end;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
}

.messaging-copy p:first-child {
  margin-top: 0;
}

.policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.policy-links a {
  color: var(--white);
  font-size: 14px;
  font-weight: 750;
  text-underline-offset: 5px;
}

.company-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
}

.company-details {
  margin: 0;
  border-top: 1px solid var(--ink);
}

.company-details > div {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.company-details dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.company-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 15px;
  font-weight: 700;
}

.site-footer {
  display: grid;
  grid-template-columns: 0.65fr 1.4fr 0.95fr;
  gap: 48px;
  padding: 52px max(24px, calc((100vw - var(--max)) / 2));
  background: var(--ink);
  color: var(--white);
}

.footer-brand {
  font-size: 22px;
}

.footer-legal p {
  margin: 0 0 5px;
  color: #b8bcb8;
  font-size: 12px;
}

.footer-nav {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}

/* Policy pages */
.policy-page .site-header {
  position: static;
  border-bottom-color: var(--line);
  background: var(--paper);
  color: var(--ink);
}

.policy-page .language-switch {
  border-color: var(--line);
}

.policy-page .language-switch button {
  border-left-color: var(--line);
}

.policy-page .language-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--white);
}

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

.policy-hero-inner,
.policy-layout {
  width: min(100% - 48px, 980px);
  margin: 0 auto;
}

.policy-hero-inner {
  padding: 80px 0 64px;
}

.policy-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: 54px;
  line-height: 1.05;
  letter-spacing: 0;
}

.policy-meta {
  margin-top: 18px;
  color: var(--muted);
}

.policy-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 72px;
  padding: 72px 0 104px;
}

.policy-aside {
  align-self: start;
  position: sticky;
  top: 24px;
  padding-top: 14px;
  border-top: 2px solid var(--accent);
}

.policy-aside strong,
.policy-aside span {
  display: block;
}

.policy-aside strong {
  font-size: 13px;
}

.policy-aside span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.policy-content section {
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.policy-content section:first-child {
  padding-top: 0;
  border-top: 0;
}

.policy-content h2 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.25;
}

.policy-content p,
.policy-content li {
  color: #404340;
}

.policy-content ul,
.policy-content ol {
  padding-left: 22px;
}

.policy-content li + li {
  margin-top: 8px;
}

.request-steps {
  margin: 24px 0;
  padding: 24px;
  border-left: 4px solid var(--accent);
  background: var(--white);
}

.request-steps p:first-child {
  margin-top: 0;
}

.request-steps p:last-child {
  margin-bottom: 0;
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 0 20px;
  }

  .site-nav {
    display: none;
  }

  .hero {
    min-height: 740px;
  }

  .hero h1 {
    font-size: 58px;
  }

  .identity-band {
    grid-template-columns: 1fr;
  }

  .identity-band > div {
    padding: 20px 24px;
    border-top: 1px solid #343734;
    border-left: 0;
  }

  .identity-band > div:first-child {
    border-top: 0;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-grid article,
  .service-grid article:first-child {
    padding: 28px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .service-grid article:first-child {
    border-top: 0;
  }

  .messaging-inner,
  .company-section,
  .data-principles {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: 700px;
    align-items: flex-end;
  }

  .hero-image {
    object-position: 63% center;
  }

  .hero-shade {
    background: linear-gradient(0deg, rgba(8, 9, 8, 0.94) 0%, rgba(8, 9, 8, 0.72) 55%, rgba(8, 9, 8, 0.2) 100%);
  }

  .hero-content {
    width: calc(100% - 40px);
    padding: 120px 0 72px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .registered-name,
  .hero-copy {
    font-size: 16px;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .image-credit {
    right: 10px;
    bottom: 8px;
  }

  .section,
  .messaging-inner,
  .data-inner {
    width: calc(100% - 40px);
  }

  .section,
  .messaging-inner,
  .data-inner {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .section-heading h2,
  .messaging-section h2 {
    font-size: 32px;
  }

  .company-details > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .footer-nav {
    flex-wrap: wrap;
  }

  .policy-hero-inner,
  .policy-layout {
    width: calc(100% - 40px);
  }

  .policy-hero-inner {
    padding: 56px 0 44px;
  }

  .policy-hero h1 {
    font-size: 38px;
  }

  .policy-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 0 72px;
  }

  .policy-aside {
    position: static;
  }
}

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