:root {
  color-scheme: light;
  --brand-700: #0d3558;
  --brand-600: #0f3d66;
  --brand-500: #1e5b94;
  --brand-100: #d9e7f4;
  --mint-500: #19b7a5;
  --mint-100: #cff5ef;
  --ink-900: #0f1722;
  --ink-700: #344254;
  --surface: #f7f9fc;
  --line: #d8e0e9;
  --white: #ffffff;
}

@view-transition {
  navigation: auto;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 0%, rgba(207, 245, 239, 0.8), transparent 24rem),
    radial-gradient(circle at 90% 10%, rgba(217, 231, 244, 0.85), transparent 28rem),
    var(--surface);
  color: var(--ink-700);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

::view-transition-old(root) {
  animation: legal-page-out 90ms ease-out both;
}

::view-transition-new(root) {
  animation: legal-page-in 150ms ease-out both;
}

@keyframes legal-page-out {
  to {
    opacity: 0;
  }
}

@keyframes legal-page-in {
  from {
    opacity: 0;
  }
}

a {
  color: var(--brand-500);
}

a:hover {
  color: var(--brand-600);
}

a:focus-visible {
  border-radius: 6px;
  outline: 3px solid rgba(25, 183, 165, 0.35);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 10px;
  background: var(--ink-900);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(201, 211, 223, 0.8);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.header-inner,
.page-shell,
.footer-inner {
  width: min(100% - 32px, 1120px);
  margin-inline: auto;
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
}

.brand-link img {
  display: block;
  width: auto;
  height: 42px;
}

.legal-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legal-nav a {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--ink-700);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.legal-nav a:hover,
.legal-nav a[aria-current="page"] {
  background: #eef4fa;
  color: var(--brand-600);
}

.page-shell {
  padding-block: 64px 80px;
}

.page-intro {
  max-width: 790px;
  margin: 0 auto 28px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid rgba(25, 183, 165, 0.25);
  border-radius: 999px;
  background: rgba(234, 251, 249, 0.9);
  color: #117d72;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-intro h1 {
  margin: 18px 0 12px;
  color: var(--ink-900);
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.page-intro > h1 + p {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.page-actions {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.back-to-app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid var(--brand-100);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 24px rgba(15, 23, 34, 0.05);
  color: var(--brand-600);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    transform 150ms ease;
}

.back-to-app:hover {
  border-color: rgba(30, 91, 148, 0.36);
  background: var(--white);
  color: var(--brand-700);
  transform: translateY(-1px);
}

.back-to-app span {
  font-size: 1.05rem;
  line-height: 1;
}

.legal-card {
  max-width: 860px;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 24px 64px rgba(15, 23, 34, 0.08);
}

.document-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 32px 24px;
  border-bottom: 1px solid #e8edf2;
}

.document-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef4fa;
  color: var(--brand-600);
  font-size: 1.35rem;
  font-weight: 800;
}

.document-header h2 {
  margin: 0;
  color: var(--ink-900);
  font-size: 1.25rem;
  line-height: 1.3;
}

.updated-at {
  margin: 4px 0 0;
  color: #637083;
  font-size: 0.82rem;
}

.document-body {
  padding: 24px 32px 16px;
}

.notice {
  margin: 0 0 28px;
  padding: 16px 18px;
  border: 1px solid var(--brand-100);
  border-radius: 14px;
  background: #f2f7fb;
  color: #233447;
  font-size: 0.92rem;
}

.legal-section {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 0 0 24px;
  margin: 0 0 24px;
  border-bottom: 1px solid #e8edf2;
}

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

.section-number {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink-900);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 800;
}

.section-content h3 {
  margin: 1px 0 9px;
  color: var(--ink-900);
  font-size: 1rem;
  line-height: 1.45;
}

.section-content p {
  margin: 0 0 12px;
  font-size: 0.91rem;
}

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

.section-content ul {
  margin: 8px 0 12px;
  padding-left: 20px;
}

.section-content li {
  padding-left: 4px;
  font-size: 0.91rem;
}

.section-content li + li {
  margin-top: 6px;
}

.company-note {
  max-width: 860px;
  margin: 24px auto 0;
  padding: 18px 20px;
  border: 1px solid rgba(25, 183, 165, 0.24);
  border-radius: 16px;
  background: rgba(234, 251, 249, 0.78);
  color: #21524d;
  font-size: 0.86rem;
  text-align: center;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #f1f5f9;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 28px;
  font-size: 0.82rem;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: var(--ink-700);
  font-weight: 700;
  text-decoration: none;
}

::selection {
  background: rgba(25, 183, 165, 0.22);
  color: var(--ink-900);
}

@media (max-width: 680px) {
  .header-inner {
    min-height: 68px;
  }

  .brand-link img {
    height: 36px;
  }

  .legal-nav a {
    padding: 8px 9px;
    font-size: 0.77rem;
  }

  .page-shell {
    padding-block: 42px 56px;
  }

  .page-intro {
    margin-bottom: 22px;
  }

  .page-intro > h1 + p {
    font-size: 0.95rem;
  }

  .back-to-app {
    width: 100%;
    max-width: 320px;
  }

  .legal-card {
    border-radius: 18px;
  }

  .document-header {
    padding: 22px 20px 20px;
  }

  .document-body {
    padding: 20px 20px 10px;
  }

  .legal-section {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 11px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-block: 13px;
  }

  .legal-nav {
    width: 100%;
  }

  .legal-nav a {
    flex: 1;
    text-align: center;
  }

  .page-shell,
  .header-inner,
  .footer-inner {
    width: min(100% - 24px, 1120px);
  }
}

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

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0.01ms;
  }
}

@media print {
  body {
    background: #fff;
  }

  .site-header,
  .site-footer,
  .skip-link {
    display: none;
  }

  .page-shell {
    width: 100%;
    padding: 0;
  }

  .legal-card {
    max-width: none;
    border: 0;
    box-shadow: none;
  }
}
