:root {
  color-scheme: light;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  background: #f4f7fa;
  color: #102033;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  background: radial-gradient(circle at 5% 0, rgba(20, 184, 166, 0.1), transparent 30rem), #f4f7fa;
  line-height: 1.7;
}

a {
  color: #087f73;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10;
  padding: 9px 13px;
  border-radius: 10px;
  background: #07111f;
  color: #fff;
  transform: translateY(-160%);
}

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

.legal-header,
main,
footer {
  width: min(100% - 40px, 980px);
  margin-inline: auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #07111f;
  text-decoration: none;
}

.brand span {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.brand strong {
  color: #0f9789;
  font-weight: 680;
}

.back-link {
  font-size: 0.9rem;
  font-weight: 650;
  text-underline-offset: 4px;
}

main {
  padding: clamp(36px, 7vw, 76px) clamp(22px, 6vw, 72px);
  border: 1px solid #dbe4ec;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 30px 80px rgba(16, 32, 51, 0.08);
}

.eyebrow {
  margin: 0 0 10px;
  color: #087f73;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  color: #07111f;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  font-weight: 570;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.updated {
  margin: 18px 0 0;
  color: #5f7185;
  font-size: 0.88rem;
}

.introduction {
  max-width: 780px;
  margin: 34px 0 0;
  color: #40546a;
  font-size: 1.08rem;
}

section {
  margin-top: 42px;
  padding-top: 34px;
  border-top: 1px solid #e1e8ef;
}

h2 {
  margin: 0;
  color: #122338;
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 650;
  letter-spacing: -0.025em;
}

section > p {
  margin: 12px 0 0;
  color: #4b5f74;
}

.plan-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.plan-list article {
  padding: 20px;
  border: 1px solid #dbe4ec;
  border-radius: 18px;
  background: #f8fafc;
}

.plan-list p,
.plan-list strong,
.plan-list span {
  display: block;
}

.plan-list p {
  margin: 0;
  color: #5f7185;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan-list strong {
  margin-top: 8px;
  color: #07111f;
  font-size: 1.25rem;
}

.plan-list small {
  color: #5f7185;
  font-size: 0.72rem;
  font-weight: 500;
}

.plan-list span {
  margin-top: 9px;
  color: #52677d;
  font-size: 0.83rem;
  line-height: 1.45;
}

.notice {
  margin-top: 42px;
  padding: 22px;
  border: 1px solid #9ee3d9;
  border-radius: 18px;
  background: #ebfbf8;
}

.notice strong {
  color: #07665e;
}

.notice p {
  margin: 7px 0 0;
  color: #355c5a;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 30px 46px;
  color: #5f7185;
  font-size: 0.84rem;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

a:focus-visible {
  border-radius: 3px;
  outline: 3px solid #14b8a6;
  outline-offset: 4px;
}

@media (max-width: 620px) {
  .legal-header,
  main,
  footer {
    width: min(100% - 24px, 980px);
  }

  .legal-header {
    min-height: 76px;
  }

  .back-link {
    font-size: 0.82rem;
  }

  main {
    border-radius: 22px;
  }

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

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    background: #06101d;
    color: #e5edf5;
  }

  body {
    background:
      radial-gradient(circle at 5% 0, rgba(20, 184, 166, 0.12), transparent 30rem), #06101d;
  }

  .brand,
  h1 {
    color: #f8fafc;
  }

  a,
  .eyebrow {
    color: #5eead4;
  }

  main {
    border-color: #203348;
    background: rgba(10, 24, 40, 0.97);
  }

  .updated,
  footer,
  .plan-list p,
  .plan-list small {
    color: #98aabd;
  }

  .introduction,
  section > p {
    color: #b7c6d5;
  }

  section {
    border-color: #25384c;
  }

  h2,
  .plan-list strong {
    color: #edf4fa;
  }

  .plan-list article {
    border-color: #273b50;
    background: #0d1d2f;
  }

  .plan-list span {
    color: #aabacc;
  }

  .notice {
    border-color: #176c63;
    background: #082d2a;
  }

  .notice strong {
    color: #6ee7d5;
  }

  .notice p {
    color: #b3dcd7;
  }
}
