/*
 * Inter variable, self-hosted so that no font request leaves orchify.io.
 * SIL Open Font License, see assets/fonts/LICENSE.txt. Only the Latin subsets
 * are shipped; other scripts fall back to the system stack.
 */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/inter-variable-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/inter-variable-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/*
 * Layout tokens consume the semantic brand variables from orchify-theme.css.
 * Light is the default, matching the brand file, so the page renders correctly
 * even when the inline theme script is blocked. Dark values apply through the
 * data-theme attribute or, when it is absent, through the system preference.
 */
:root {
  --page: var(--color-canvas);
  --page-alt: var(--orchify-ink-50);
  --surface: var(--color-surface);
  --surface-soft: rgba(13, 11, 20, 0.035);
  --header: rgba(248, 247, 250, 0.88);
  --text: var(--color-text-primary);
  --text-secondary: var(--color-text-secondary);
  --text-muted: var(--color-text-muted);
  --border: var(--color-border);
  --border-strong: var(--orchify-ink-400);
  --purple: var(--color-orchestration);
  --purple-bright: var(--orchify-purple-800);
  --purple-soft: rgba(124, 43, 208, 0.08);
  --purple-border: rgba(124, 43, 208, 0.24);
  --shadow-sm: 0 10px 30px rgba(46, 30, 63, 0.07);
  --shadow-lg: 0 24px 70px rgba(46, 30, 63, 0.11);
  --gradient-headline: linear-gradient(110deg, var(--orchify-ink-950) 5%, var(--orchify-purple-600) 55%, var(--orchify-purple-800) 95%);
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --container: 1180px;
  --content: 760px;
  --header-height: 76px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --ease: 180ms ease;
}

:root[data-theme="dark"] {
  --page-alt: var(--orchify-ink-1000);
  --surface-soft: rgba(255, 255, 255, 0.035);
  --header: rgba(13, 11, 20, 0.84);
  --border-strong: var(--orchify-ink-600);
  --purple-bright: var(--orchify-purple-400);
  --purple-soft: rgba(124, 43, 208, 0.13);
  --purple-border: rgba(168, 85, 247, 0.34);
  --shadow-sm: 0 10px 28px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.34);
  --gradient-headline: linear-gradient(110deg, var(--text) 5%, var(--orchify-purple-300) 52%, var(--purple) 95%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page-alt: var(--orchify-ink-1000);
    --surface-soft: rgba(255, 255, 255, 0.035);
    --header: rgba(13, 11, 20, 0.84);
    --border-strong: var(--orchify-ink-600);
    --purple-bright: var(--orchify-purple-400);
    --purple-soft: rgba(124, 43, 208, 0.13);
    --purple-border: rgba(168, 85, 247, 0.34);
    --shadow-sm: 0 10px 28px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.34);
    --gradient-headline: linear-gradient(110deg, var(--text) 5%, var(--orchify-purple-300) 52%, var(--purple) 95%);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  font-size: 16px;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--page);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--ease), color var(--ease);
}

body::before {
  position: fixed;
  z-index: -1;
  top: -320px;
  left: 50%;
  width: min(1100px, 110vw);
  height: 760px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(124, 43, 208, 0.14), transparent 68%);
  content: "";
  pointer-events: none;
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

h1,
h2,
h3 {
  color: var(--text);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

p {
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--purple-bright);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  z-index: 2000;
  top: 12px;
  left: 12px;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  background: var(--color-action-primary);
  color: var(--color-action-on-primary);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform var(--ease);
}

.skip-link:focus-visible {
  transform: none;
}

.text-gradient {
  display: block;
  background-image: var(--gradient-headline);
  background-clip: text;
  color: transparent;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 12px 22px;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: transform var(--ease), background-color var(--ease), border-color var(--ease),
    box-shadow var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-sm {
  min-height: 40px;
  padding: 9px 16px;
  font-size: 0.84rem;
}

.btn-lg {
  min-height: 54px;
  padding: 15px 25px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(135deg, var(--orchify-purple-600), var(--orchify-purple-800));
  box-shadow: 0 9px 24px rgba(124, 43, 208, 0.24);
  color: var(--color-action-on-primary);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-action-primary-hover), var(--orchify-purple-700));
  box-shadow: 0 13px 32px rgba(124, 43, 208, 0.32);
}

.btn-secondary {
  border-color: var(--border-strong);
  background: var(--surface-soft);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--purple-border);
  background: var(--purple-soft);
}

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: var(--header-height);
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: var(--header);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-logo {
  display: block;
  width: auto;
  height: 35px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
}

.nav-link {
  position: relative;
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 0.87rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--ease);
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  border-radius: 2px;
  background: var(--purple-bright);
  content: "";
  transition: transform var(--ease);
}

.nav-link:hover,
.nav-link[aria-current="location"] {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link[aria-current="location"]::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  margin-left: 18px;
}

.theme-toggle,
.nav-toggle {
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
  transition: background-color var(--ease), border-color var(--ease), transform var(--ease);
}

.theme-toggle {
  display: flex;
}

.theme-toggle:hover,
.nav-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--purple-border);
  background: var(--purple-soft);
}

.theme-icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.theme-icon-moon {
  display: none;
}

:root[data-theme="dark"] .theme-icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-icon-moon {
  display: block;
}

/* The toggle depends on script. Without the theme attribute the page follows the system preference. */
html:not([data-theme]) .theme-toggle {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle-bar {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: opacity var(--ease), transform var(--ease);
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-height) + 110px) 0 120px;
  text-align: center;
}

.hero-section::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  content: "";
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), transparent 82%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), transparent 82%);
  opacity: 0.27;
}

.hero-container {
  max-width: 1020px;
}

.hero-badge,
.section-kicker {
  color: var(--purple-bright);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-badge {
  display: inline-flex;
  margin-bottom: 30px;
  border: 1px solid var(--purple-border);
  border-radius: 999px;
  padding: 7px 15px;
  background: var(--purple-soft);
}

.hero-title {
  max-width: 900px;
  margin: 0 auto 30px;
  font-size: clamp(3rem, 6.4vw, 5rem);
  line-height: 1.02;
}

.hero-lead {
  max-width: 740px;
  margin: 0 auto 16px;
  color: var(--text);
  font-size: clamp(1.12rem, 2vw, 1.28rem);
}

.hero-support {
  max-width: 690px;
  margin: 0 auto;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 40px 0 28px;
}

.hero-reach {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.section {
  padding: clamp(88px, 9vw, 132px) 0;
}

/*
 * Skip layout and paint work for homepage sections until they approach the
 * viewport. The intrinsic size keeps the document stable before each section
 * is rendered and is replaced with the measured size after the first visit.
 */
@supports (content-visibility: auto) {
  .hero-section ~ .section {
    content-visibility: auto;
    contain-intrinsic-size: auto 720px;
  }
}

.section-darker {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--page-alt);
}

.section-header {
  max-width: var(--content);
  margin: 0 auto 58px;
  text-align: center;
}

.section-kicker {
  margin-bottom: 17px;
}

.section-title {
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 4.2vw, 3.55rem);
}

.section-title-left {
  max-width: 640px;
  margin-bottom: 0;
}

.section-subtitle {
  max-width: 640px;
  margin-inline: auto;
  font-size: 1.06rem;
}

.problem-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
  gap: clamp(50px, 8vw, 110px);
  align-items: start;
}

.problem-copy {
  display: grid;
  gap: 22px;
  max-width: 560px;
  padding-top: 7px;
  font-size: 1rem;
}

.problem-copy p:last-child {
  border-left: 2px solid var(--purple);
  padding-left: 20px;
  color: var(--text);
  font-weight: 600;
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

.card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(28px, 3vw, 38px);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--purple-border);
  box-shadow: var(--shadow-lg);
}

.card-number,
.process-number,
.role-item span {
  color: var(--purple-bright);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.card-number {
  margin-bottom: 28px;
}

.card-title {
  margin-bottom: 18px;
  font-size: 1.34rem;
}

.card-text {
  margin-bottom: 18px;
  font-size: 0.94rem;
}

.card-text:last-child {
  margin-bottom: 0;
}

.reliability-section {
  padding: clamp(72px, 8vw, 112px) 0;
}

.reliability-layout {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 790px);
  gap: 44px;
  justify-content: center;
  align-items: start;
  overflow: hidden;
  border: 1px solid var(--purple-border);
  border-radius: var(--radius-lg);
  padding: clamp(38px, 6vw, 72px);
  background: linear-gradient(135deg, var(--purple-soft), var(--surface) 62%);
  box-shadow: var(--shadow-lg);
}

.reliability-layout::after {
  position: absolute;
  right: -120px;
  bottom: -180px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 43, 208, 0.14), transparent 68%);
  content: "";
  pointer-events: none;
}

.reliability-marker {
  display: flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--purple-border);
  border-radius: 18px;
  background: var(--purple-soft);
  color: var(--purple-bright);
  font-family: var(--font-mono);
  font-size: 1.55rem;
  font-weight: 700;
}

.reliability-title {
  max-width: 760px;
  margin-bottom: 26px;
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
}

.reliability-lead {
  max-width: 700px;
  margin-bottom: 20px;
  color: var(--text);
  font-size: 1.12rem;
}

.reliability-layout p:not(.section-kicker, .reliability-lead) {
  max-width: 700px;
  margin-bottom: 16px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
  list-style: none;
}

.process-step {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.process-step::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), transparent 85%);
  content: "";
}

.process-number {
  display: block;
  margin-bottom: 36px;
}

.process-step h3 {
  margin-bottom: 16px;
  font-size: 1.25rem;
}

.process-step p {
  font-size: 0.89rem;
}

.principle-card {
  border-top-color: var(--purple-border);
}

.team-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(50px, 8vw, 100px);
  align-items: start;
}

.team-intro > p:not(.section-kicker) {
  max-width: 610px;
  margin-top: 22px;
  font-size: 1rem;
}

.role-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
}

.role-item {
  display: flex;
  min-height: 132px;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 23px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.role-item strong {
  max-width: 230px;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.35;
}

.contact-section {
  padding-bottom: clamp(100px, 10vw, 150px);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.82fr);
  gap: clamp(50px, 8vw, 100px);
  align-items: center;
}

.contact-title {
  max-width: 650px;
  margin-bottom: 24px;
  font-size: clamp(2.4rem, 4.5vw, 3.75rem);
}

.contact-lead {
  max-width: 630px;
  margin-bottom: 42px;
  font-size: 1.04rem;
}

.contact-details {
  display: grid;
  gap: 22px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: center;
}

.contact-icon {
  display: flex;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--purple-bright);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.contact-label {
  margin-bottom: 2px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.contact-val {
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
}

a.contact-val:hover {
  color: var(--purple-bright);
}

.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(30px, 4vw, 44px);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.contact-card-label {
  margin-bottom: 12px;
  color: var(--purple-bright);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-card h3 {
  margin-bottom: 28px;
  font-size: 1.5rem;
}

.contact-form {
  display: grid;
  gap: 18px;
  margin-bottom: 8px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}

.form-optional {
  color: var(--text-muted);
  font-weight: 400;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: var(--surface-soft);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
  border-color: var(--purple-bright);
  outline: none;
  box-shadow: 0 0 0 3px var(--purple-soft);
}

.form-field [aria-invalid="true"] {
  border-color: var(--orchify-error);
}

.form-hint {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.form-field-check {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.form-field-check input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--color-action-primary);
}

.form-field-check label {
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.5;
}

.form-field-check a,
.form-fallback a {
  color: var(--purple-bright);
}

.form-status {
  min-height: 1.5em;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.form-fallback {
  display: grid;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  background: var(--surface-soft);
}

.form-fallback[hidden] {
  display: none;
}

.form-fallback p {
  font-size: 0.86rem;
}

.form-fallback-text {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.5;
  resize: vertical;
}

.contact-expectation {
  max-width: 310px;
  margin: 18px auto 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.55;
  text-align: center;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 62px 0 40px;
  background: var(--page-alt);
}

.footer-container {
  display: flex;
  gap: 44px;
  align-items: flex-start;
  justify-content: space-between;
}

.footer-logo {
  display: block;
  width: auto;
  height: 30px;
  margin-bottom: 14px;
}

.footer-tagline {
  max-width: 340px;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: right;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.82rem;
  text-decoration: none;
}

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

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: flex-end;
}

.footer-legal a {
  color: var(--text-muted);
  font-size: 0.76rem;
  text-decoration: none;
}

.footer-legal a:hover,
.footer-legal a[aria-current="page"] {
  color: var(--purple-bright);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.76rem;
}

.legal-main {
  min-height: 70vh;
  padding: calc(var(--header-height) + 84px) 0 120px;
}

.legal-document {
  max-width: 900px;
}

.legal-hero {
  max-width: 760px;
  margin-bottom: 48px;
}

.legal-hero h1 {
  margin: 12px 0 22px;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
}

.legal-hero > p:last-child {
  max-width: 700px;
  font-size: 1.08rem;
}

.legal-document code {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 6px;
  background: var(--surface-soft);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.86em;
}

.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 52px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.legal-toc strong {
  width: 100%;
  margin-bottom: 4px;
  font-size: 0.82rem;
}

.legal-toc a {
  color: var(--text-secondary);
  font-size: 0.84rem;
}

.legal-toc a:hover {
  color: var(--purple-bright);
}

.legal-section {
  margin-top: 52px;
}

.legal-section + .legal-section {
  border-top: 1px solid var(--border);
  padding-top: 52px;
}

.legal-section h2 {
  margin-bottom: 22px;
  font-size: clamp(1.55rem, 3vw, 2rem);
}

.legal-section h3 {
  margin: 30px 0 10px;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
}

.legal-section p,
.legal-section li {
  max-width: 760px;
}

.legal-section p + p {
  margin-top: 16px;
}

.legal-section ul {
  display: grid;
  gap: 12px;
  margin: 18px 0 20px;
  padding-left: 22px;
  color: var(--text-secondary);
}

.legal-section a {
  color: var(--purple-bright);
}

.legal-details {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.legal-details > div {
  display: grid;
  grid-template-columns: minmax(170px, 0.34fr) minmax(0, 0.66fr);
}

.legal-details > div + div {
  border-top: 1px solid var(--border);
}

.legal-details dt,
.legal-details dd {
  padding: 18px 20px;
}

.legal-details dt {
  border-right: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-details dd {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.legal-details a {
  color: var(--purple-bright);
}

.legal-details + p {
  margin-top: 16px;
}

.legal-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.legal-table th,
.legal-table td {
  min-width: 170px;
  border-bottom: 1px solid var(--border);
  padding: 17px 19px;
  vertical-align: top;
  color: var(--text-secondary);
  font-size: 0.86rem;
}

.legal-table th {
  background: var(--surface-soft);
  color: var(--text);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-table tr:last-child td {
  border-bottom: 0;
}

.legal-updated {
  margin-top: 64px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.notfound-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

@media (max-width: 1080px) {
  .nav-menu {
    gap: 15px;
  }

  .nav-link {
    font-size: 0.81rem;
  }

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

@media (max-width: 900px) {
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    border-bottom: 1px solid var(--border);
    padding: 20px 24px 24px;
    transform: translateY(-135%);
    background: var(--page);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-link {
    padding: 9px 0;
    font-size: 0.96rem;
    text-align: center;
  }

  .nav-menu .btn {
    margin-top: 8px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .problem-layout,
  .team-layout,
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .role-list {
    max-width: 700px;
  }

  .contact-wrapper {
    align-items: start;
  }

  .contact-card {
    width: min(100%, 620px);
  }
}

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 36px), var(--container));
  }

  .section {
    padding: 82px 0;
  }

  .hero-section {
    padding: calc(var(--header-height) + 72px) 0 88px;
  }

  .hero-title {
    font-size: clamp(2.55rem, 13vw, 3.65rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .grid-2,
  .grid-3,
  .process-grid,
  .role-list {
    grid-template-columns: 1fr;
  }

  .reliability-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .reliability-marker {
    width: 54px;
    height: 54px;
    border-radius: 15px;
  }

  .role-item {
    min-height: 118px;
  }

  .footer-container {
    flex-direction: column;
  }

  .footer-right {
    text-align: left;
  }

  .footer-links,
  .footer-legal {
    justify-content: flex-start;
  }

  .legal-main {
    padding-top: calc(var(--header-height) + 62px);
  }

  .legal-details > div {
    grid-template-columns: 1fr;
  }

  .legal-details dt {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
  }

  .legal-details dd {
    padding-top: 12px;
  }
}

@media (max-width: 420px) {
  .brand-logo {
    height: 30px;
  }

  .nav-actions {
    gap: 7px;
    margin-left: 10px;
  }

  .theme-toggle,
  .nav-toggle {
    width: 39px;
    height: 39px;
  }

  .card,
  .process-step,
  .contact-card {
    padding: 25px;
  }

  .footer-links,
  .footer-legal {
    flex-direction: column;
    gap: 10px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
