/* GATELNK — Corporate static landing (no frameworks) */

:root {
  --color-bg: #ffffff;
  --color-surface: #f4f7fb;
  --color-border: #e2e8f0;
  --color-text: #1a2332;
  --color-muted: #5c6b7f;
  --color-blue-deep: #0f2744;
  --color-blue: #1e4d8c;
  --color-blue-bright: #2a6fbd;
  --color-line: #06c755;
  --color-line-hover: #05a849;
  --color-telegram: #229ed9;
  --color-telegram-hover: #1b8bc2;
  --font-sans: "Segoe UI", system-ui, -apple-system, "Noto Sans Thai", "Sarabun", sans-serif;
  --shadow-sm: 0 1px 2px rgba(15, 39, 68, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 39, 68, 0.08);
  --radius: 10px;
  --header-h: 88px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

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

a {
  color: var(--color-blue-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

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

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--color-blue-deep);
  color: #fff;
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  min-height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem 1rem;
  min-height: var(--header-h);
  padding-block: 0.5rem;
}

.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  height: 64px;
  width: auto;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--color-blue-bright);
  outline-offset: 2px;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--color-blue-deep);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

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

.site-nav .nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem 1.75rem;
  align-items: center;
}

.site-nav a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.35rem 0.25rem;
  border-radius: 6px;
}

.site-nav a:hover {
  color: var(--color-blue-bright);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .site-nav {
    flex: 0 0 auto;
    position: fixed;
    top: var(--header-h);
    left: auto;
    right: 0;
    width: min(19.5rem, calc(100vw - 0.75rem));
    background: #fff;
    border: 1px solid var(--color-border);
    border-top: 0;
    border-right: 0;
    border-radius: 0 0 0 14px;
    box-shadow: -6px 12px 32px rgba(15, 39, 68, 0.12);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.28s ease, opacity 0.2s ease, visibility 0.2s;
  }

  .site-nav.is-open {
    max-height: 320px;
    opacity: 1;
    visibility: visible;
  }

  .site-nav .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 0.65rem 1rem 1.1rem 1.15rem;
    gap: 0;
  }

  .site-nav a {
    display: block;
    padding: 0.75rem 1rem 0.75rem 1.15rem;
    text-align: left;
    border-radius: 8px;
  }
}

/* Hero */
.hero {
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(3.5rem, 7vw, 5rem);
  background: linear-gradient(165deg, var(--color-surface) 0%, #fff 55%);
  border-bottom: 1px solid var(--color-border);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 320px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-blue);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-blue-deep);
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  color: var(--color-muted);
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--color-blue-deep);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-blue);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--color-blue-deep);
  border-color: var(--color-border);
}

.btn-ghost:hover {
  border-color: var(--color-blue-bright);
  color: var(--color-blue-bright);
}

.hero-panel {
  justify-self: end;
}

@media (max-width: 900px) {
  .hero-panel {
    justify-self: stretch;
  }
}

.hero-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow-md);
}

.hero-card-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}

.hero-card-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-blue-deep);
  word-break: break-all;
}

.hero-card-meta {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* Services */
.services {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  background: #fff;
}

.section-head {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2.75rem;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  color: var(--color-blue-deep);
}

.section-sub {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.02rem;
}

.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cdd8e8;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--color-blue-deep);
}

.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-muted);
}

/* Packages (pricing-style tiers) */
.packages {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  background: linear-gradient(180deg, #fff 0%, var(--color-surface) 100%);
  border-top: 1px solid var(--color-border);
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
  max-width: 1040px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .package-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

.package-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.35rem 1.35rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.package-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cdd8e8;
}

.package-card-featured {
  border-color: var(--color-blue-bright);
  box-shadow: 0 12px 36px rgba(30, 77, 140, 0.12);
  z-index: 1;
}

@media (min-width: 901px) {
  .package-card-featured {
    transform: scale(1.02);
  }
}

.package-badge {
  position: absolute;
  top: 0;
  right: 1.25rem;
  transform: translateY(-50%);
  margin: 0;
  padding: 0.35rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--color-blue-bright);
  border-radius: 999px;
}

.package-name {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  color: var(--color-blue-deep);
}

.package-tagline {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.45;
}

.package-price {
  margin: 0 0 1.1rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-blue);
}

.package-features {
  margin: 0 0 1.25rem;
  padding-left: 1.15rem;
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.55;
  flex-grow: 1;
}

.package-features li {
  margin-bottom: 0.4rem;
}

.package-cta {
  margin-top: auto;
  align-self: stretch;
  text-align: center;
  justify-content: center;
}

/* Testimonials */
.testimonials {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  background: #fff;
  border-top: 1px solid var(--color-border);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

.testimonial-card {
  margin: 0;
  padding: 1.35rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  border-left: 4px solid var(--color-blue-bright);
}

.testimonial-card blockquote {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}

.testimonial-card blockquote p {
  margin: 0;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.65;
}

.testimonial-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.85rem;
}

.testimonial-name {
  font-weight: 700;
  color: var(--color-blue-deep);
}

.testimonial-role {
  color: var(--color-muted);
}

/* Contact — prominent CTA */
.contact {
  padding: clamp(3rem, 7vw, 5rem) 0;
  background: linear-gradient(180deg, var(--color-blue-deep) 0%, #0a1a2e 100%);
  color: #e8eef5;
}

.contact-inner {
  text-align: center;
}

.contact-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  color: #fff;
}

.contact-head p {
  margin: 0 auto 2.25rem;
  max-width: 36rem;
  color: rgba(232, 238, 245, 0.88);
  font-size: 1.05rem;
}

.contact a {
  color: #a8d4ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact a:hover {
  color: #fff;
}

.form-thanks {
  display: none;
  max-width: 40rem;
  margin: 0 auto 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  color: #fff;
  font-size: 0.98rem;
  line-height: 1.5;
}

.form-thanks:target {
  display: block;
}

.contact-form-wrap {
  max-width: 640px;
  margin: 2.75rem auto 0;
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: left;
  background: #fff;
  color: var(--color-text);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}

.contact-form-title {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: var(--color-blue-deep);
}

.contact-form-intro {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.55;
}

.contact-form-intro a {
  color: var(--color-blue);
  font-weight: 600;
}

.contact-form-intro a:hover {
  color: var(--color-blue-bright);
}

.contact-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

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

@media (min-width: 560px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field {
  margin: 0 0 1rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-blue-deep);
}

.label-optional {
  font-weight: 500;
  color: var(--color-muted);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-blue-bright);
  box-shadow: 0 0 0 3px rgba(42, 111, 189, 0.2);
}

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

.form-field-checkbox {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-top: 0.25rem;
}

.form-field-checkbox input {
  width: auto;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.form-field-checkbox label {
  font-weight: 500;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--color-muted);
}

.form-field-checkbox a {
  color: var(--color-blue);
  font-weight: 600;
}

.form-actions {
  margin: 1.25rem 0 0;
}

.btn-submit {
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  background: var(--color-blue-deep);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-submit:hover {
  background: var(--color-blue);
}

.btn-submit:focus-visible {
  outline: 2px solid var(--color-blue-bright);
  outline-offset: 3px;
}

.form-footnote {
  margin: 1rem 0 0;
  font-size: 0.78rem;
  color: var(--color-muted);
  line-height: 1.45;
}

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

.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;
}

.contact-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.25rem;
  max-width: 720px;
  margin-inline: auto;
}

.cta-line,
.cta-telegram {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: min(100%, 320px);
  flex: 1 1 280px;
  max-width: 360px;
  padding: 1rem 1.35rem;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.cta-line:hover,
.cta-telegram:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.25);
  filter: brightness(1.03);
  color: #fff;
}

.cta-line {
  background: var(--color-line);
}

.cta-line:hover {
  background: var(--color-line-hover);
}

.cta-telegram {
  background: var(--color-telegram);
}

.cta-telegram:hover {
  background: var(--color-telegram-hover);
}

.cta-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.cta-icon-line {
  font-family: var(--font-sans);
}

.cta-icon-telegram svg {
  width: 26px;
  height: 26px;
}

.cta-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.cta-title {
  font-size: 1.05rem;
  line-height: 1.25;
}

.cta-sub {
  font-size: 0.88rem;
  font-weight: 500;
  opacity: 0.95;
}

/* Footer */
.site-footer {
  background: #f0f3f8;
  border-top: 1px solid var(--color-border);
  padding: 2.5rem 0 2rem;
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

@media (min-width: 700px) {
  .footer-inner {
    text-align: left;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .footer-brand {
    align-items: flex-start;
  }

  .footer-legal {
    grid-column: 1 / -1;
    justify-self: center;
    text-align: center;
  }

  .footer-copy {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 0.5rem;
    border-top: 1px solid var(--color-border);
    margin: 0;
  }
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.75rem;
  font-size: 0.88rem;
}

.footer-legal a {
  color: var(--color-blue);
  text-decoration: none;
  font-weight: 600;
}

.footer-legal a:hover {
  text-decoration: underline;
}

.footer-legal-sep {
  color: #c5ced9;
  user-select: none;
}

.footer-logo-link {
  display: block;
  margin-bottom: 0.25rem;
  text-decoration: none;
  line-height: 0;
}

.footer-logo-link:hover {
  opacity: 0.92;
}

.footer-logo {
  height: clamp(56px, 14vw, 88px);
  width: auto;
  max-width: min(100%, 280px);
  object-fit: contain;
}

@media (min-width: 700px) {
  .footer-logo {
    height: clamp(76px, 8.5vw, 104px);
    max-width: 320px;
  }
}

.footer-brand strong {
  display: block;
  font-size: 1.1rem;
  color: var(--color-blue-deep);
  margin-bottom: 0.35rem;
}

.footer-brand p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
  max-width: 36em;
}

.footer-contact {
  font-style: normal;
  font-size: 0.88rem;
  color: var(--color-muted);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-contact a {
  color: var(--color-blue);
}

.footer-copy {
  margin: 0;
  font-size: 0.82rem;
  color: var(--color-muted);
}

@media (max-width: 699px) {
  .site-footer {
    padding: 1.5rem 0 1.25rem;
  }

  .footer-inner {
    gap: 0.75rem;
  }

  .footer-brand {
    gap: 0.15rem;
  }

  .footer-logo-link {
    margin-bottom: 0;
  }

  .footer-logo {
    height: clamp(62px, 18vw, 112px);
    max-width: min(100%, 340px);
  }

  .footer-brand strong {
    margin-bottom: 0.1rem;
    font-size: 1.02rem;
    line-height: 1.25;
  }

  .footer-brand p {
    font-size: 0.84rem;
    line-height: 1.45;
    max-width: 22rem;
    margin-inline: auto;
  }

  .footer-contact {
    gap: 0.18rem;
    font-size: 0.82rem;
    line-height: 1.42;
  }

  .footer-legal {
    gap: 0.2rem 0.45rem;
    font-size: 0.82rem;
    line-height: 1.35;
    margin-top: 0.05rem;
  }

  .footer-copy {
    font-size: 0.76rem;
    line-height: 1.3;
    margin-top: 0.1rem;
  }
}

/* Back to top (scroll-to-top) */
.back-to-top {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-blue-deep);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(15, 39, 68, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease, background 0.15s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-blue);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--color-blue-bright);
  outline-offset: 3px;
}

/* Legal documents (privacy, terms) */
.legal-page .site-header {
  position: relative;
}

.legal-main {
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 4rem);
  background: var(--color-surface);
}

.legal-doc {
  max-width: 52rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 2.5rem);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.legal-doc h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  color: var(--color-blue-deep);
  line-height: 1.25;
}

.legal-meta {
  margin: 0 0 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.88rem;
  color: var(--color-muted);
}

.legal-doc h2 {
  margin: 2rem 0 0.65rem;
  font-size: 1.15rem;
  color: var(--color-blue-deep);
  line-height: 1.3;
}

.legal-doc h2:first-of-type {
  margin-top: 0;
}

.legal-doc p {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.7;
}

.legal-doc ul {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
  color: var(--color-text);
  line-height: 1.65;
}

.legal-doc li {
  margin-bottom: 0.35rem;
}

.legal-doc a {
  color: var(--color-blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-doc a:hover {
  color: var(--color-blue-bright);
}

.legal-doc .legal-note {
  margin-top: 2rem;
  padding: 1rem 1.1rem;
  background: var(--color-surface);
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--color-muted);
  border-left: 4px solid var(--color-blue-bright);
}
