:root {
  color-scheme: light;
  --background: #f7f5fb;
  --surface: #ffffff;
  --surface-soft: #eee8fa;
  --surface-warm: #fff6e8;
  --ink: #241836;
  --ink-soft: #6d647b;
  --violet: #7453d6;
  --violet-dark: #50309d;
  --gold: #b86f28;
  --line: #e2dced;
  --shadow: 0 18px 45px rgba(67, 42, 105, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--background);
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(116, 83, 214, 0.3);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 9px 14px;
  color: #fff;
  background: var(--violet-dark);
  border-radius: 6px;
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 245, 251, 0.94);
  border-bottom: 1px solid rgba(226, 220, 237, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header__inner {
  width: min(1120px, calc(100% - 40px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(74, 47, 133, 0.2);
}

.brand__name {
  display: block;
  font-size: 20px;
  font-weight: 780;
  line-height: 1.05;
}

.brand__tagline {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.site-nav a {
  min-height: 38px;
  padding: 8px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

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

.site-nav a[aria-current="page"] {
  color: #fff;
  background: var(--violet);
}

.page-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.page-hero {
  padding: 78px 0 64px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--violet-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
}

.page-hero__intro {
  max-width: 700px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.6;
}

.page-hero__meta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 24px 0 0;
  padding: 8px 12px;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 680;
}

.page-hero__meta::before {
  width: 8px;
  height: 8px;
  content: "";
  background: var(--gold);
  border-radius: 50%;
}

.legal-layout {
  padding: 0 0 96px;
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.contents {
  position: sticky;
  top: 112px;
  padding-top: 10px;
}

.contents__label {
  margin: 0 0 13px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contents a {
  display: block;
  padding: 8px 10px;
  border-left: 2px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
}

.contents a:hover {
  color: var(--violet-dark);
  border-left-color: var(--violet);
  background: var(--surface-soft);
}

.legal-document {
  padding: 20px 48px 56px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

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

.legal-section h2 {
  margin: 0 0 12px;
  font-size: 23px;
  line-height: 1.25;
}

.legal-section p,
.legal-section li {
  color: #40364d;
  font-size: 16px;
}

.legal-section p {
  margin: 0 0 14px;
}

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

.legal-section ul {
  margin: 14px 0 0;
  padding-left: 22px;
}

.legal-section li + li {
  margin-top: 10px;
}

.summary-section {
  margin: 10px 0 4px;
  padding: 26px 28px;
  background: var(--surface-soft);
  border: 0;
  border-radius: 8px;
}

.summary-section h2 {
  color: var(--violet-dark);
}

.home-main {
  overflow: hidden;
}

.home-hero {
  min-height: min(720px, calc(100vh - 82px));
  padding-top: 72px;
  padding-bottom: 88px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
}

.home-hero__icon {
  width: 112px;
  height: 112px;
  margin-bottom: 34px;
  border-radius: 28px;
  box-shadow: 0 22px 46px rgba(74, 47, 133, 0.24);
}

.home-hero h1 {
  font-size: clamp(64px, 10vw, 112px);
}

.home-hero__intro {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.45;
}

.home-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-action {
  width: fit-content;
  min-height: 52px;
  margin-top: 28px;
  padding: 13px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--violet);
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(86, 52, 164, 0.2);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.primary-action:hover {
  color: #fff;
  background: var(--violet-dark);
}

.primary-action--disabled,
.primary-action--disabled:hover {
  color: rgba(255, 255, 255, 0.82);
  background: #81758f;
  box-shadow: none;
  cursor: not-allowed;
}

.home-resources {
  padding: 84px 0 96px;
  background: var(--surface-soft);
  border-top: 1px solid var(--line);
}

.home-resources__inner {
  display: grid;
  grid-template-columns: minmax(250px, 0.75fr) minmax(0, 1.25fr);
  gap: 72px;
  align-items: start;
}

.home-resources__intro h2 {
  margin: 0 0 14px;
  font-size: 34px;
  line-height: 1.2;
}

.home-resources__intro p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
}

.home-links {
  border-top: 1px solid rgba(80, 48, 157, 0.18);
}

.home-link {
  min-height: 108px;
  padding: 24px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--ink);
  border-bottom: 1px solid rgba(80, 48, 157, 0.18);
  text-decoration: none;
}

.home-link:hover {
  color: var(--violet-dark);
}

.home-link strong,
.home-link small {
  display: block;
}

.home-link strong {
  font-size: 19px;
}

.home-link small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 14px;
}

.home-link__arrow {
  color: var(--violet);
  font-size: 24px;
  transition: transform 160ms ease;
}

.home-link:hover .home-link__arrow {
  transform: translateX(4px);
}

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

.site-footer__inner {
  width: min(1120px, calc(100% - 40px));
  min-height: 116px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

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

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

.footer-links a:hover {
  color: var(--violet-dark);
}

@media (max-width: 820px) {
  .site-header {
    position: static;
  }

  .site-header__inner {
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav a {
    flex: 1 1 0;
    padding-inline: 10px;
  }

  .page-hero {
    padding: 58px 0 46px;
  }

  .legal-layout {
    display: block;
    padding-bottom: 64px;
  }

  .contents {
    position: static;
    margin-bottom: 24px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 10px;
    scrollbar-width: thin;
  }

  .contents__label {
    display: none;
  }

  .contents a {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    white-space: nowrap;
  }

  .legal-document {
    padding: 10px 28px 40px;
  }

  .home-resources__inner {
    grid-template-columns: 1fr;
    gap: 42px;
  }
}

@media (max-width: 520px) {
  .site-header__inner,
  .page-shell,
  .site-footer__inner {
    width: min(100% - 28px, 1120px);
  }

  .brand__icon {
    width: 40px;
    height: 40px;
  }

  .site-nav a {
    min-height: 36px;
    font-size: 12.5px;
  }

  .page-hero {
    padding: 48px 0 38px;
  }

  h1 {
    font-size: 42px;
  }

  .page-hero__intro {
    font-size: 17px;
  }

  .legal-document {
    padding: 8px 20px 34px;
  }

  .legal-section {
    padding: 25px 0;
  }

  .legal-section h2 {
    font-size: 20px;
  }

  .legal-section p,
  .legal-section li {
    font-size: 15px;
  }

  .summary-section {
    margin: 8px -8px 0;
    padding: 22px 20px;
  }

  .home-hero {
    min-height: 620px;
    padding-top: 58px;
    padding-bottom: 68px;
  }

  .home-hero__icon {
    width: 92px;
    height: 92px;
    margin-bottom: 28px;
    border-radius: 24px;
  }

  .home-hero h1 {
    font-size: 64px;
  }

  .home-actions,
  .primary-action {
    width: 100%;
  }

  .home-resources {
    padding: 64px 0 72px;
  }

  .site-footer__inner {
    padding: 30px 0;
    align-items: flex-start;
    flex-direction: column;
  }
}

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

/* Support contact details remain hidden until requested. */
.support-content {
  max-width: 720px;
  padding-bottom: 96px;
}

.support-card {
  padding: clamp(22px, 5vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.support-card h2 {
  margin: 0 0 12px;
  font-size: 23px;
}

.support-card > p {
  color: var(--ink-soft);
}

.support-button {
  min-height: 44px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--violet);
  border-radius: 999px;
  color: #fff;
  background: var(--violet);
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
}

.support-button:hover {
  color: #fff;
  background: var(--violet-dark);
}

.support-button--secondary {
  color: var(--violet-dark);
  background: var(--surface);
  border-color: var(--line);
}

.support-button--secondary:hover {
  color: var(--violet-dark);
  background: var(--surface-soft);
}

.support-button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.support-contact__details {
  margin-top: 20px;
  padding: 20px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.support-contact__details[hidden] {
  display: none;
}

.support-contact__email {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: clamp(16px, 3vw, 20px);
  font-weight: 750;
  user-select: all;
}

.support-contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.support-contact__status {
  min-height: 1.65em;
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.support-card .support-note {
  margin: 24px 0 0;
  font-size: 14px;
}
