:root {
  --navy: #030e2f;
  --navy-mid: #1a2947;
  --navy-deep: #02091f;
  --gold: #c79528;
  --gold-hover: #a87a1c;
  --gold-active: #966b16;
  --ink: #1a1a1a;
  --muted: #3d3d3d;
  --line: #d8d8d4;
  --surface: #ffffff;
  --surface-alt: #f7f7f5;
  --on-gold: #030e2f;
  --error: #ffb4b4;
  --success: #b7e0b9;
  --max: 1120px;
  --narrow: 720px;
  --header-h: 4.5rem;
  --space-1: 0.5rem;
  --space-2: 0.85rem;
  --space-3: 1.25rem;
  --space-4: 2rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --z-header: 100;
  --z-skip: 200;
  --focus-ring: 2px solid var(--gold);
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  text-wrap: balance;
  color: var(--navy);
}

p {
  text-wrap: pretty;
}

::selection {
  background: rgba(199, 149, 40, 0.35);
  color: var(--navy);
}

#top,
#proces,
#kontakt {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: var(--z-skip);
  padding: 0.75rem 1rem;
  background: var(--navy);
  color: var(--surface);
  text-decoration: none;
  border-radius: 4px;
}

.skip-link:focus {
  top: 1rem;
  outline: var(--focus-ring);
  outline-offset: 2px;
}

.shell {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.shell--narrow {
  width: min(100% - 2rem, var(--narrow));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  padding: 0.85rem 1.5rem;
  border: 0;
  border-radius: 4px;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out);
}

.btn:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
}

.btn--gold {
  background: var(--gold);
  color: var(--on-gold);
}

.btn--gold:hover {
  background: var(--gold-hover);
  color: var(--on-gold);
}

.btn--gold:active {
  background: var(--gold-active);
}

.btn--navy {
  background: var(--navy);
  color: var(--surface);
}

.btn--navy:hover {
  background: var(--gold);
  color: var(--on-gold);
}

.btn--ghost {
  background: transparent;
  color: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--surface);
}

.btn--ghost:active {
  background: rgba(255, 255, 255, 0.18);
}

.btn--ghost:focus-visible {
  outline-color: var(--surface);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0);
  padding-inline: env(safe-area-inset-left, 0) env(safe-area-inset-right, 0);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  min-height: var(--header-h);
  padding-block: 0.75rem;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--navy);
  min-width: 0;
  flex: 1 1 auto;
  border-radius: 4px;
}

.site-header__brand:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 4px;
}

.site-header__product {
  font-size: clamp(0.8rem, 1.9vw, 1.05rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 14rem;
}

.site-header__sep {
  color: var(--gold);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

.site-header__brand img {
  width: clamp(110px, 16vw, 170px);
  height: auto;
  flex-shrink: 0;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.site-header__call--icon {
  display: none;
  width: 2.75rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
}

.site-header__call--icon svg {
  display: block;
  margin: auto;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.lang-switch__btn {
  margin: 0;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.55rem;
  border: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.lang-switch__btn:hover:not(.is-active) {
  background: var(--surface-alt);
}

.lang-switch__btn.is-active {
  background: var(--navy);
  color: var(--surface);
}

.lang-switch__btn:focus-visible {
  outline: var(--focus-ring);
  outline-offset: -2px;
  z-index: 1;
}

/* Mid phones: keep product name + logo, shrink aggressively */
@media (max-width: 560px) {
  .site-header__inner {
    gap: 0.5rem;
  }

  .site-header__product {
    white-space: normal;
    max-width: 6.75rem;
    line-height: 1.15;
    font-size: 0.78rem;
  }

  .site-header__brand {
    gap: 0.4rem;
  }

  .site-header__brand img {
    width: clamp(96px, 26vw, 128px);
  }

  .site-header__call--label {
    display: none;
  }

  .site-header__call--icon {
    display: inline-flex;
  }

  .lang-switch__btn {
    min-width: 2.5rem;
    padding-inline: 0.4rem;
    font-size: 0.75rem;
  }
}

/* Very narrow: logo + actions only (full name stays in aria-label + hero) */
@media (max-width: 380px) {
  .site-header__product,
  .site-header__sep {
    display: none;
  }

  .site-header__brand img {
    width: 7.25rem;
  }

  .site-header__actions {
    gap: 0.4rem;
  }

  .lang-switch__btn {
    min-width: 2.4rem;
    min-height: 2.75rem;
  }
}

@media (min-width: 561px) and (max-width: 719px) {
  .site-header__call--label {
    display: none;
  }

  .site-header__call--icon {
    display: inline-flex;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92svh, 820px);
  display: flex;
  align-items: flex-end;
  color: var(--surface);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.04);
  animation: hero- ken 18s var(--ease-out) both;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 14, 47, 0.28) 0%, rgba(3, 14, 47, 0.55) 48%, rgba(3, 14, 47, 0.82) 100%),
    linear-gradient(90deg, rgba(3, 14, 47, 0.42) 0%, transparent 55%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-block: clamp(3.5rem, 10vh, 6.5rem) clamp(3rem, 8vh, 5rem);
  max-width: 38rem;
  margin-right: auto;
}

.hero__brand {
  margin: 0 0 0.85rem;
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold);
  animation: rise 0.9s var(--ease-out) both;
  overflow-wrap: break-word;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 4.2vw, 3.15rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--surface);
  animation: rise 0.9s var(--ease-out) 0.08s both;
}

.hero__lead {
  margin: 0 0 1.75rem;
  max-width: 36rem;
  font-size: clamp(0.98rem, 1.6vw, 1.15rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  animation: rise 0.9s var(--ease-out) 0.14s both;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: rise 0.9s var(--ease-out) 0.22s both;
}

.hero__cta .btn {
  flex: 1 1 auto;
  min-width: min(100%, 11rem);
}

@media (max-width: 560px) {
  .hero {
    min-height: min(88svh, 700px);
  }

  .hero__content {
    margin-inline: 1rem;
    max-width: none;
    padding-block: clamp(2.75rem, 8vh, 4rem) clamp(2.25rem, 6vh, 3.25rem);
  }

  .hero__cta .btn {
    flex: 1 1 100%;
    min-width: 0;
  }
}

@media (max-height: 640px) and (orientation: landscape) {
  .hero {
    min-height: auto;
  }

  .hero__content {
    padding-block: 2rem 1.75rem;
  }

  .hero__media img {
    animation: none;
    transform: scale(1.02);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.1rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-ken {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1.02);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__media img,
  .hero__brand,
  .hero h1,
  .hero__lead,
  .hero__cta {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .reveal,
  .reveal.is-pending {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Sections */
.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.section--service,
.section--why {
  background: var(--surface);
}

.section--process {
  background: var(--surface-alt);
}

.section--faq {
  background: var(--surface);
}

.section--team {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
}

.section--team h2,
.section--team h3 {
  color: var(--surface);
}

.section--team .section__head {
  max-width: 48rem;
}

.section--team .section__head p {
  color: rgba(255, 255, 255, 0.72);
}

.section--pillars {
  background: var(--surface);
}

.section--offices {
  background: var(--gold);
  padding-block: clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.section--offices h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 600;
}

.section--cta-band {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.9);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}

.section--cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.section--cta-band h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  color: var(--surface);
}

.section--cta-band p {
  margin: 0;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.88);
}

.section__head {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section__head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section__head p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
}

.section__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .section__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .section__grid--why {
    grid-template-columns: 0.95fr 1.05fr;
  }
}

.section__copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section__copy > p {
  margin: 0;
  font-size: 1.05rem;
  max-width: 38rem;
  color: var(--muted);
}

.section__figure {
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
}

.section__figure img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 16px;
}

.section__figure--offices img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: right center;
}

/* Process */
.process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.process__item {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.75rem 1.25rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}

.process__num {
  grid-row: 1 / span 2;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.process__item h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.process__item p {
  margin: 0;
  grid-column: 2;
  max-width: 42rem;
  color: var(--muted);
}

@media (min-width: 800px) {
  .process {
    grid-template-columns: 1fr 1fr;
    column-gap: 2.5rem;
    border-top: 0;
  }

  .process__item {
    border-top: 0;
    border-bottom: 0;
    padding-block: 1.6rem;
  }

  .process__item:nth-child(1),
  .process__item:nth-child(2) {
    padding-top: 0;
    border-bottom: 1px solid var(--line);
  }

  .process__item:nth-child(3),
  .process__item:nth-child(4) {
    padding-bottom: 0;
    border-top: 1px solid var(--line);
  }
}

/* Team — 4 columns; incomplete last row centered */
.team {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 1.25rem;
  row-gap: 1.5rem;
}

.team__member {
  flex: 0 1 calc((100% - 1.25rem) / 2);
  max-width: calc((100% - 1.25rem) / 2);
  min-width: 0;
}

@media (min-width: 700px) {
  .team__member {
    flex-basis: calc((100% - 2 * 1.25rem) / 3);
    max-width: calc((100% - 2 * 1.25rem) / 3);
  }
}

@media (min-width: 960px) {
  .team__member {
    flex-basis: calc((100% - 3 * 1.25rem) / 4);
    max-width: calc((100% - 3 * 1.25rem) / 4);
  }
}

.pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 800px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.pillars__item {
  padding-top: 1.25rem;
  border-top: 2px solid var(--gold);
}

.pillars__item h3 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.pillars__item p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--muted);
}

.why-intro {
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
  max-width: 38rem;
  color: var(--muted);
}

.team__member img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  margin-bottom: 0.85rem;
  border-radius: 14px;
}

.section--team {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

.section--faq,
.section--pillars {
  content-visibility: auto;
  contain-intrinsic-size: auto 480px;
}

.hero__media picture,
.section__figure picture,
.team__member picture {
  display: block;
}

.team__member h3 {
  margin: 0 0 0.2rem;
  font-size: 0.98rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.team__member p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.65);
}

/* Why */
.why-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.why-list li {
  display: grid;
  gap: 0.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.why-list strong {
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 600;
}

.why-list span {
  font-size: 0.98rem;
  color: var(--muted);
}

/* FAQ */
.faq {
  display: grid;
  gap: 0.5rem;
}

.faq__item {
  border-bottom: 1px solid var(--line);
  padding: 0.25rem 0 0.85rem;
}

.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 2rem 0.85rem 0;
  font-weight: 600;
  color: var(--navy);
  position: relative;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 4px;
  border-radius: 2px;
}

.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  translate: 0 -50%;
  font-size: 1.25rem;
  color: var(--gold);
  font-weight: 500;
  line-height: 1;
}

.faq__item[open] summary::after {
  content: "–";
}

.faq__item p {
  margin: 0 0 0.5rem;
  max-width: 58ch;
  color: var(--muted);
}

/* Contact */
.section--contact {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
}

.section--contact h2 {
  color: var(--surface);
}

.section--contact .section__head p {
  color: rgba(255, 255, 255, 0.72);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form__row {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.contact-form label {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  overflow-wrap: break-word;
}

.contact-form__req {
  color: var(--gold);
  margin-inline-start: 0.2rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--surface);
  font: inherit;
  overflow-wrap: anywhere;
}

.contact-form textarea {
  resize: vertical;
  min-height: 8rem;
  field-sizing: content;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 1px;
  border-color: transparent;
}

.contact-form input.is-invalid,
.contact-form textarea.is-invalid,
.contact-form__privacy input.is-invalid {
  border-color: var(--error);
}

.contact-form__hint {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.62);
}

.contact-form__field-error {
  margin: 0;
  color: var(--error);
  font-size: 0.88rem;
}

.contact-form__privacy {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.contact-form__privacy input {
  width: 1.35rem;
  height: 1.35rem;
  min-width: 1.35rem;
  margin-top: 0.1rem;
  accent-color: var(--gold);
  flex-shrink: 0;
}

.contact-form__privacy label {
  flex: 1;
  min-width: 0;
  line-height: 1.45;
  padding-block: 0.35rem;
  cursor: pointer;
}

@media (pointer: coarse), (max-width: 639px) {
  .contact-form__privacy {
    gap: 0.65rem;
    align-items: center;
  }

  .contact-form__privacy input {
    width: 2.75rem;
    height: 2.75rem;
    min-width: 2.75rem;
    margin-top: 0;
  }

  .contact-form__privacy label {
    padding-block: 0.55rem;
    min-height: 2.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem 0.35rem;
  }

  .btn {
    min-height: 3rem;
  }

  .faq__item summary {
    min-height: 2.75rem;
    padding-block: 1rem;
  }
}

.contact-form__privacy input:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

.contact-form__privacy a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-form__privacy a:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
  border-radius: 2px;
}

.contact-form__error {
  margin: 0;
  color: var(--error);
  font-size: 0.9rem;
}

.contact-form__success {
  margin: 0;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(183, 224, 185, 0.35);
  border-radius: 4px;
  background: rgba(183, 224, 185, 0.08);
  color: var(--success);
  font-size: 0.95rem;
}

.contact-form__success:focus {
  outline: none;
}

.contact-form__success:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
}

.contact-form__success p {
  margin: 0;
  overflow-wrap: break-word;
}

.contact-form__success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin-top: 0.75rem !important;
  font-size: 0.9rem;
}

.contact-form__success-actions a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

.contact-form__success-actions a:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

.contact-form .btn {
  justify-self: start;
  margin-top: 0.35rem;
}

.contact-form .btn[aria-busy="true"] {
  opacity: 0.7;
  cursor: wait;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.65);
  padding-block: 2rem;
  padding-bottom: max(2rem, env(safe-area-inset-bottom, 0px));
  padding-inline: env(safe-area-inset-left, 0) env(safe-area-inset-right, 0);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer__brand {
  margin: 0;
  color: var(--surface);
  font-weight: 600;
  max-width: 22rem;
  line-height: 1.3;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.site-footer__nav a {
  text-decoration: none;
  font-size: 0.9rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

.site-footer__nav a:hover {
  color: var(--gold);
}

.site-footer__nav a:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
  border-radius: 2px;
  color: var(--gold);
}

.site-footer__note {
  margin: 0;
  font-size: 0.85rem;
  width: 100%;
}

/* Reveal: visible by default; motion only when JS marks pending */
.reveal {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.65s var(--ease-out),
    transform 0.65s var(--ease-out);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal.is-pending {
    opacity: 0;
    transform: translateY(1rem);
  }

  .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

/* Legal pages */
.legal-page {
  background: var(--surface);
  color: var(--muted);
}

.legal {
  padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 6vw, 5rem);
}

.legal__wrap {
  max-width: 44rem;
}

.legal__back {
  margin: 0 0 1.5rem;
}

.legal__back a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}

.legal__back a:hover {
  color: var(--gold);
}

.legal__head {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.legal__head h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--navy);
}

.legal__meta {
  margin: 0 0 0.35rem;
  font-weight: 600;
  color: var(--navy);
}

.legal__updated,
.legal__note {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
}

.legal__note {
  margin-top: 0.85rem;
  padding: 0.75rem 1rem;
  background: var(--surface-alt);
  border-radius: 6px;
  color: var(--ink);
}

.legal__doc section {
  margin-bottom: 1.75rem;
}

.legal__doc h2 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
}

.legal__doc p,
.legal__doc li {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--muted);
}

.legal__doc p {
  margin: 0 0 0.75rem;
}

.legal__doc ul {
  margin: 0 0 0.85rem;
  padding-left: 1.2rem;
}

.legal__doc li {
  margin-bottom: 0.35rem;
}

.legal__doc a {
  color: var(--gold-hover);
  text-underline-offset: 2px;
}

.legal__doc a:hover {
  color: var(--gold);
}

.legal__table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 1rem;
  font-size: 0.9rem;
}

.legal__table th,
.legal__table td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.legal__table th {
  background: var(--surface-alt);
  color: var(--navy);
  font-weight: 600;
}

.legal__table code {
  font-size: 0.85em;
}
