/* ==========================================================================
   OMC Cloud — Supporting Pages
   Locations, Network, DDoS Protection, About, Contact, FAQ
   ========================================================================== */

/* ---- Locations ---- */
.location-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.location-card { display: flex; flex-direction: column; gap: var(--space-3); }
.location-card__head { display: flex; align-items: center; gap: var(--space-3); }
.location-card__head .icon { width: 22px; height: 22px; color: var(--color-accent-600); flex-shrink: 0; }
.location-card__head h3, .location-card__head h4 { font-size: var(--text-lg); }
.location-card p { color: var(--color-text-muted); font-size: var(--text-sm); }
.location-card__tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: auto; }

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

/* ---- Contact ---- */
.contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--space-8);
  align-items: start;
}
.contact-info-card { display: flex; flex-direction: column; gap: var(--space-5); }
.contact-info-item { display: flex; gap: var(--space-3); align-items: flex-start; }
.contact-info-item .icon-wrap {
  width: 36px; height: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-accent-100);
  color: var(--color-accent-600);
}
.contact-info-item .icon-wrap .icon { width: 18px; height: 18px; }
.contact-info-item h3, .contact-info-item h4 { font-size: var(--text-sm); margin-bottom: 2px; }
.contact-info-item p, .contact-info-item a { font-size: var(--text-sm); color: var(--color-text-muted); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.form-success {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  background: var(--color-success-100);
  color: var(--color-success-600);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-5);
}
.form-success .icon { width: 20px; height: 20px; flex-shrink: 0; }

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---- FAQ page ---- */
.faq-group { margin-bottom: var(--space-12); }
.faq-group:last-child { margin-bottom: 0; }
.faq-group h2 { font-size: var(--text-2xl); margin-bottom: var(--space-5); }
.faq-group__accordion { max-width: none; margin-inline: 0; }

/* ---- About ----
   Hero, trust strip, category cards and why-grid come from patterns.css;
   only About-only pieces live here. */

/* Breadcrumbs placed inside the dark hero */
.hero__breadcrumbs { padding-block: 0 var(--space-8); color: var(--color-text-on-dark-muted); }
.hero__breadcrumbs a { color: var(--color-text-on-dark-muted); }
.hero__breadcrumbs a:hover { color: var(--color-white); }
.hero__breadcrumbs [aria-current="page"] { color: var(--color-white); }

/* Hero side card: tier list */
.tier-list { display: flex; flex-direction: column; }
.tier-list__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
}
.tier-list__item:first-child { border-top: 1px solid var(--color-border); }
.tier-list__item:hover { color: var(--color-accent-600); text-decoration: none; }
.tier-list__item > .icon { width: 20px; height: 20px; color: var(--color-accent-600); }
.tier-list__item span { flex-grow: 1; }
.tier-list__item small { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-text-muted); }
.tier-list__arrow { width: 16px; height: 16px; color: var(--color-gray-500); }

/* Mission: prose + fact tiles */
.about-intro { align-items: start; }
.about-intro h2 { margin-bottom: var(--space-5); }
.fact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.fact-tile {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.fact-tile dt {
  font-family: var(--font-mono);
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-navy-900);
  line-height: var(--leading-tight);
}
.fact-tile dd { margin: var(--space-2) 0 0; font-size: var(--text-sm); color: var(--color-text-muted); }

/* How it works: numbered steps */
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  counter-reset: step;
}
.step-card { position: relative; counter-increment: step; }
.step-card::before {
  content: "0" counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-navy-900);
  color: var(--color-accent-400);
  font-family: var(--font-mono);
  font-weight: var(--font-weight-bold);
}
.step-card h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.step-card p { color: var(--color-text-muted); font-size: var(--text-sm); }

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

/* ---- Blog ----
   Hero reuses .hero from patterns.css (+ .hero__breadcrumbs above). */
.post-card__tags { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.post-tag {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent-600);
}

/* Featured post inside the hero card */
.hero__card .post-card__title { font-size: var(--text-xl); margin-block: var(--space-3) var(--space-2); }
.hero__card .post-card__excerpt { color: var(--color-text-muted); font-size: var(--text-sm); }

/* Topic filter */
.topic-filter { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; margin-bottom: var(--space-10); }
.topic-filter__btn {
  min-height: 40px;
  padding-inline: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}
.topic-filter__btn:hover { border-color: var(--color-accent-400); }
.topic-filter__btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.topic-filter__btn[aria-pressed="true"] { background: var(--color-navy-900); border-color: var(--color-navy-900); color: var(--color-white); }

/* Post grid */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.post-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.post-card[hidden] { display: none; }
.post-card__cover {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 80% 20%, rgba(123, 163, 248, 0.25), transparent 55%),
    linear-gradient(135deg, var(--color-navy-950), var(--color-navy-700));
  color: var(--color-accent-400);
}
.post-card__cover .icon { width: 56px; height: 56px; }
.post-card__body { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); flex-grow: 1; }
.post-card__title { font-size: var(--text-lg); line-height: var(--leading-snug); }
.post-card__excerpt { color: var(--color-text-muted); font-size: var(--text-sm); flex-grow: 1; }
.post-card__status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.post-grid__empty { text-align: center; color: var(--color-text-muted); }

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

/* ---- FAQ page (redesign) ----
   Hero from patterns.css; sidebar topic nav + searchable accordion groups. */
.hero__card .quick-facts { display: flex; flex-direction: column; gap: var(--space-3); }
.quick-facts li { display: flex; align-items: flex-start; gap: var(--space-3); font-size: var(--text-sm); color: var(--color-text-muted); }
.quick-facts li .icon { width: 18px; height: 18px; color: var(--color-success-600); margin-top: 2px; }
.quick-facts strong { color: var(--color-text); font-weight: var(--font-weight-medium); }

.faq-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-12);
  align-items: start;
}
.faq-sidebar { position: sticky; top: var(--space-24); display: flex; flex-direction: column; gap: var(--space-6); }
.faq-search { position: relative; }
.faq-search .icon { position: absolute; left: var(--space-3); top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--color-gray-500); pointer-events: none; }
.faq-search input {
  width: 100%;
  min-height: 44px;
  padding: 0 var(--space-4) 0 var(--space-10);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font: inherit;
  font-size: var(--text-sm);
  color: var(--color-text);
}
.faq-search input:focus { outline: none; border-color: var(--color-accent-600); box-shadow: var(--shadow-focus); }

.faq-topics { display: flex; flex-direction: column; gap: var(--space-1); }
.faq-topics a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
}
.faq-topics a:hover { background: var(--color-bg-subtle); color: var(--color-accent-600); text-decoration: none; }
.faq-topics a .icon { width: 18px; height: 18px; color: var(--color-accent-600); }
.faq-topics a span { flex-grow: 1; }
.faq-topics small { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-text-muted); }

.faq-help { background: var(--color-navy-950); color: var(--color-text-on-dark-muted); border-radius: var(--radius-lg); padding: var(--space-5); font-size: var(--text-sm); }
.faq-help h2 { color: var(--color-white); font-size: var(--text-base); margin-bottom: var(--space-2); }
.faq-help a { color: var(--color-accent-400); }

.faq-group { scroll-margin-top: var(--space-24); }
.faq-group__head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-5); }
.faq-group__head .icon-wrap {
  width: 40px; height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-navy-900);
  color: var(--color-white);
}
.faq-group__head .icon-wrap .icon { width: 20px; height: 20px; }
.faq-group__head h2 { margin-bottom: 0; }
.faq-empty { padding: var(--space-8); text-align: center; color: var(--color-text-muted); border: 1px dashed var(--color-border); border-radius: var(--radius-lg); }

@media (max-width: 900px) {
  .faq-layout { grid-template-columns: 1fr; gap: var(--space-8); }
  .faq-sidebar { position: static; }
  .faq-topics { flex-direction: row; flex-wrap: wrap; gap: var(--space-2); }
  .faq-topics a { border: 1px solid var(--color-border); border-radius: var(--radius-full); padding: var(--space-2) var(--space-4); }
  .faq-help { display: none; }
}

/* ---- Contact page (redesign) ----
   Hero from patterns.css; form layout reuses .contact-layout above. */
.contact-channels { display: flex; flex-direction: column; }
.contact-channel {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}
.contact-channel:first-child { border-top: 1px solid var(--color-border); }
.contact-channel .icon-wrap {
  width: 36px; height: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-accent-100);
  color: var(--color-accent-600);
}
.contact-channel .icon-wrap .icon { width: 18px; height: 18px; }
.contact-channel h3 { font-size: var(--text-sm); margin-bottom: 2px; }
.contact-channel a, .contact-channel p { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--color-text-muted); }
.contact-channel a:hover { color: var(--color-accent-600); }

.contact-aside { display: flex; flex-direction: column; gap: var(--space-6); }
.contact-aside h2 { font-size: var(--text-2xl); margin-bottom: var(--space-3); }
.contact-aside > p { color: var(--color-text-muted); }
.contact-tips { display: flex; flex-direction: column; gap: var(--space-3); }
.contact-tips li { display: flex; align-items: flex-start; gap: var(--space-3); font-size: var(--text-sm); }
.contact-tips li .icon { width: 18px; height: 18px; color: var(--color-success-600); margin-top: 2px; }

.contact-form-card h2 { font-size: var(--text-2xl); margin-bottom: var(--space-2); }
.contact-form-card__lead { color: var(--color-text-muted); font-size: var(--text-sm); margin-bottom: var(--space-6); }
.contact-form-card__note { margin-top: var(--space-4); font-size: var(--text-xs); color: var(--color-text-muted); }

/* ---- Network page (redesign) ----
   Hero from patterns.css; traffic-path diagram + network spec table. */
.net-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  counter-reset: hop;
}
.net-flow__node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
/* connector arrow between nodes */
.net-flow__node:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(var(--space-8) * -1);
  width: var(--space-8);
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent-400), var(--color-accent-600));
}
.net-flow__node:not(:last-child)::before {
  content: "";
  position: absolute;
  top: calc(50% - 5px);
  right: calc(var(--space-8) * -1);
  border: 6px solid transparent;
  border-left-color: var(--color-accent-600);
  border-right-width: 0;
}
.net-flow__node .icon-wrap {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-navy-900);
  color: var(--color-accent-400);
}
.net-flow__node .icon-wrap .icon { width: 26px; height: 26px; }
.net-flow__node--end .icon-wrap { background: var(--color-accent-600); color: var(--color-white); }
.net-flow__node h3 { font-size: var(--text-base); }
.net-flow__node p { font-size: var(--text-sm); color: var(--color-text-muted); }

.spec-table-wrap {
  overflow-x: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.spec-table { min-width: 560px; font-size: var(--text-sm); }
.spec-table caption { text-align: left; padding: var(--space-5) var(--space-6) 0; font-weight: var(--font-weight-semibold); color: var(--color-text); }
.spec-table th, .spec-table td { padding: var(--space-4) var(--space-6); text-align: left; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.spec-table thead th { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-muted); font-weight: var(--font-weight-semibold); }
.spec-table tbody th { font-weight: var(--font-weight-medium); color: var(--color-text); }
.spec-table tbody tr:last-child th, .spec-table tbody tr:last-child td { border-bottom: 0; }
.spec-table td strong { font-family: var(--font-mono); font-weight: var(--font-weight-medium); color: var(--color-navy-900); }
.spec-table td span { color: var(--color-text-muted); }

@media (max-width: 900px) {
  .net-flow { grid-template-columns: 1fr; gap: var(--space-8); }
  .net-flow__node:not(:last-child)::after { top: auto; bottom: calc(var(--space-8) * -1); right: 50%; width: 2px; height: var(--space-8); background: linear-gradient(180deg, var(--color-accent-400), var(--color-accent-600)); }
  .net-flow__node:not(:last-child)::before { top: auto; bottom: calc(var(--space-8) * -1); right: calc(50% - 5px); border: 6px solid transparent; border-top-color: var(--color-accent-600); border-bottom-width: 0; }
}

/* ---- DDoS Protection page (redesign) ----
   Hero from patterns.css; flow diagram reuses .net-flow above. */
.net-flow__node--drop .icon-wrap { background: var(--color-danger-100); color: var(--color-danger-600); }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  max-width: 900px;
  margin-inline: auto;
}
.plan-card { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-8); }
.plan-card--featured { border: 2px solid var(--color-accent-600); box-shadow: var(--shadow-md); }
.plan-card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.plan-card__head h3 { font-size: var(--text-xl); }
.plan-card__price { font-family: var(--font-mono); font-size: var(--text-2xl); font-weight: var(--font-weight-bold); color: var(--color-navy-900); }
.plan-card__price span { font-family: var(--font-sans); font-size: var(--text-sm); font-weight: var(--font-weight-regular); color: var(--color-text-muted); }
.plan-card > p { color: var(--color-text-muted); font-size: var(--text-sm); }
.plan-card ul { display: flex; flex-direction: column; gap: var(--space-3); padding-block: var(--space-4); border-top: 1px solid var(--color-border); flex-grow: 1; }
.plan-card li { display: flex; align-items: flex-start; gap: var(--space-3); font-size: var(--text-sm); }
.plan-card li .icon { width: 18px; height: 18px; color: var(--color-success-600); margin-top: 2px; }

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

/* ---- Locations page (redesign) ----
   Hero from patterns.css; abstract dot-grid map + region-grouped cards.
   Pin positions are equirectangular: left = (lon + 180) / 360, top = (90 - lat) / 180. */
.loc-map {
  position: relative;
  aspect-ratio: 2 / 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    radial-gradient(circle, rgba(123, 163, 248, 0.28) 1.2px, transparent 1.6px) 0 0 / 18px 18px,
    radial-gradient(ellipse at 30% 30%, rgba(47, 111, 237, 0.25), transparent 60%),
    linear-gradient(180deg, var(--color-navy-950), var(--color-navy-800));
}
.loc-map__pin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.loc-map__dot {
  position: relative;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--color-accent-500);
  box-shadow: 0 0 0 4px rgba(74, 130, 245, 0.3);
  flex-shrink: 0;
}
.loc-map__dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--color-accent-400);
  animation: loc-pulse 2.4s ease-out infinite;
}
@keyframes loc-pulse {
  from { transform: scale(1); opacity: 0.9; }
  to { transform: scale(2.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .loc-map__dot::after { animation: none; }
}
.loc-map__label {
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  background: rgba(10, 14, 26, 0.75);
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
}
.loc-map__pin--left { flex-direction: row-reverse; }
.loc-map__note { position: absolute; left: var(--space-4); bottom: var(--space-3); font-size: var(--text-xs); color: var(--color-text-on-dark-muted); }

.region-group + .region-group { margin-top: var(--space-12); }
.region-group__head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-5); }
.region-group__head h3 { font-size: var(--text-xl); }
.region-group__head small { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-text-muted); }
.location-card__facts { display: flex; flex-direction: column; gap: var(--space-2); padding-block: var(--space-3); border-block: 1px solid var(--color-border); }
.location-card__facts li { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); color: var(--color-text-muted); }
.location-card__facts li .icon { width: 16px; height: 16px; color: var(--color-success-600); }

@media (max-width: 600px) {
  .loc-map { aspect-ratio: 4 / 3; }
  .loc-map__label { display: none; }
}

/* ---- Dedicated Servers page: wide plan-comparison table ---- */
.spec-table--wide { min-width: 0; }
.spec-table--wide th, .spec-table--wide td { padding-inline: var(--space-3); vertical-align: middle; }
.spec-table--wide tbody th, .spec-table--wide td:nth-last-child(-n+2) { white-space: nowrap; }
.spec-table--wide td > span { white-space: nowrap; }
.spec-table--wide td:last-child { text-align: right; }
@media (max-width: 1024px) {
  /* Too narrow to fit all columns: scroll the specs but keep Order pinned in view */
  .spec-table--wide { min-width: 900px; }
  .spec-table--wide td:last-child,
  .spec-table--wide thead th:last-child { position: sticky; right: 0; background: var(--color-surface); box-shadow: -8px 0 8px -8px rgb(0 0 0 / 0.15); }
  .spec-table--wide tbody tr:hover td:last-child { background: var(--color-bg-subtle); }
  .spec-table--wide tbody tr:target td:last-child { background: var(--color-accent-100); }
}
.spec-table--wide tbody tr { scroll-margin-top: var(--space-24); }
.spec-table--wide tbody tr:target { background: var(--color-accent-100); }
.spec-table--wide tbody tr:hover { background: var(--color-bg-subtle); }

/* ---- Locations: region cards (USA / Europe) ---- */
.region-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.region-card { display: flex; flex-direction: column; gap: var(--space-5); padding: var(--space-8); scroll-margin-top: var(--space-24); }
.region-card__head { display: flex; align-items: flex-start; gap: var(--space-4); }
.region-card__head > div:nth-child(2) { flex-grow: 1; }
.region-card__head .icon-wrap {
  width: 48px; height: 48px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-navy-900);
  color: var(--color-accent-400);
}
.region-card__head .icon-wrap .icon { width: 24px; height: 24px; }
.region-card__head h3 { font-size: var(--text-2xl); margin-bottom: var(--space-1); }
.region-card__head p { color: var(--color-text-muted); font-size: var(--text-sm); }
.region-card__tiers { display: flex; flex-direction: column; }
.region-card__tiers a {
  display: flex; align-items: center; gap: var(--space-3);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
}
.region-card__tiers li:first-child a { border-top: 1px solid var(--color-border); }
.region-card__tiers a:hover { color: var(--color-accent-600); text-decoration: none; }
.region-card__tiers .icon { width: 20px; height: 20px; color: var(--color-accent-600); }
.region-card__tiers span { flex-grow: 1; }
.region-card__tiers small { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-text-muted); }
.region-card .location-card__facts { border-bottom: 0; }

@media (max-width: 900px) {
  .region-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .region-card { padding: var(--space-5); }
  .region-card__head { flex-wrap: wrap; }
}

/* ---- Legal pages (terms, privacy, AUP, refund, SLA, cookies) ----
   Hero from patterns.css; sticky table of contents + readable article. */
.legal-docs { display: flex; flex-direction: column; }
.legal-docs a {
  display: flex; align-items: center; gap: var(--space-3);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
}
.legal-docs li:first-child a { border-top: 1px solid var(--color-border); }
.legal-docs a:hover { color: var(--color-accent-600); text-decoration: none; }
.legal-docs a .icon { width: 18px; height: 18px; color: var(--color-accent-600); }
.legal-docs a span { flex-grow: 1; }
.legal-docs a[aria-current="page"] { color: var(--color-accent-600); }
.legal-docs a[aria-current="page"] small { font-size: var(--text-xs); font-weight: var(--font-weight-semibold); text-transform: uppercase; letter-spacing: 0.05em; }

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: var(--space-12);
  align-items: start;
}
.legal-toc { position: sticky; top: var(--space-24); display: flex; flex-direction: column; gap: var(--space-6); }
.legal-toc nav h2 { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-muted); margin-bottom: var(--space-3); }
.legal-toc ol { display: flex; flex-direction: column; gap: var(--space-1); border-left: 2px solid var(--color-border); }
.legal-toc a {
  display: block;
  margin-left: -2px;
  padding: var(--space-1) var(--space-4);
  border-left: 2px solid transparent;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.legal-toc a:hover { color: var(--color-accent-600); border-left-color: var(--color-accent-400); text-decoration: none; }

.legal-notice {
  display: flex; gap: var(--space-3); align-items: flex-start;
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-8);
  border: 1px dashed var(--color-warning-600);
  border-radius: var(--radius-md);
  background: var(--color-warning-100);
  color: var(--color-warning-700);
  font-size: var(--text-sm);
}
.legal-notice .icon { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }

.legal-article { max-width: 760px; }
.legal-article section { padding-block: var(--space-6); border-bottom: 1px solid var(--color-border); scroll-margin-top: var(--space-24); }
.legal-article section:first-of-type { padding-top: 0; }
.legal-article section:last-of-type { border-bottom: 0; }
.legal-article h2 { font-size: var(--text-xl); margin-bottom: var(--space-3); display: flex; gap: var(--space-3); align-items: baseline; }
.legal-article h2 .legal-num { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--color-accent-600); min-width: 1.75rem; }
.legal-article p { color: var(--color-text); line-height: var(--leading-normal); margin-bottom: var(--space-3); }
.legal-article p:last-child { margin-bottom: 0; }
.legal-meta { margin-top: var(--space-8); font-size: var(--text-sm); color: var(--color-text-muted); }

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: var(--space-8); }
  .legal-toc { position: static; }
  .legal-toc .faq-help { display: none; }
}
