/* ============================================================================
 * Trierer Briefportal — landing page design tokens & layout
 * Tri-color system: Demolib (blue) · Augusta (purple) · Königspaar (gold)
 * ========================================================================== */

:root {
  --portal-ink: #121018;
  --portal-ink-deep: #0c0a10;
  --portal-parchment: #f0ece4;
  --portal-parchment-dim: #c8c0b4;
  --portal-content-max: 1600px;
  --portal-gutter: clamp(32px, 5vw, 72px);
  --portal-hero-gap: clamp(32px, 5vw, 56px);
  --portal-hero-pt: clamp(48px, 8vw, 96px);
  --portal-hero-pb: clamp(48px, 6vw, 80px);
  --portal-visual-max: 560px;

  --demolib-accent: #007ac2;
  --demolib-accent-light: #1f9dd9;
  --demolib-accent-pale: #4fc3f7;
  --demolib-ink: #0a1929;
  --demolib-white: #eef5fb;

  --augusta-accent: #7c3aed;
  --augusta-accent-light: #a855f7;
  --augusta-accent-pale: #c084fc;
  --augusta-ink: #150d28;
  --augusta-white: #f5f0fb;

  --koenigspaar-accent: #c9a84c;
  --koenigspaar-accent-light: #dfc07a;
  --koenigspaar-accent-dim: #8a6e30;
  --koenigspaar-ink: #1a1714;
  --koenigspaar-parchment: #f4f0e4;
}

/* ── BASE ── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

/* ── SKIP LINK & FOCUS ── */
.portal-skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--portal-ink);
  background: var(--portal-parchment);
  border-radius: 4px;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.2s;
}

.portal-skip-link:focus {
  transform: translateY(0);
}

.portal-skip-link:focus-visible,
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--demolib-accent-pale);
  outline-offset: 3px;
}

.portal-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--portal-ink);
  color: var(--portal-parchment);
}

.portal-page {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  min-height: 100vh;
  padding-top: 3px; /* tri-color rule */
}

/* ── TRI-COLOR TOP RULE ── */
.portal-tri-rule {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 100;
  background: linear-gradient(
    90deg,
    var(--demolib-accent) 0%,
    var(--demolib-accent) 33%,
    var(--augusta-accent) 33%,
    var(--augusta-accent) 66%,
    var(--koenigspaar-accent) 66%,
    var(--koenigspaar-accent) 100%
  );
}

/* ── HERO BACKGROUND (texture only — no duplicate portal images) ── */
.portal-hero__bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 18% 45%, rgba(0, 122, 194, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 82% 28%, rgba(124, 58, 237, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 58% 82%, rgba(201, 168, 76, 0.05) 0%, transparent 50%),
    var(--portal-ink);
}

.portal-hero__grad-left {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    rgba(18, 16, 24, 0.97) 0%,
    rgba(18, 16, 24, 0.88) 50%,
    rgba(18, 16, 24, 0.6) 75%,
    transparent 100%
  );
}

.portal-hero__grad-bottom {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(18, 16, 24, 0.95) 0%,
    transparent 45%
  );
}

/* ── CONTAINER ── */
.portal-container {
  width: 100%;
  max-width: var(--portal-content-max);
  margin-inline: auto;
  padding-left: max(var(--portal-gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--portal-gutter), env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}

/* Never use padding shorthand on elements that also carry .portal-container —
   it resets padding-inline to 0 (see .portal-hero__main). */

/* ── HEADER / NAV ── */
.portal-header {
  position: relative;
  z-index: 50;
  background: rgba(18, 16, 24, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-header__inner {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.portal-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.0125em;
  color: var(--portal-parchment);
  text-decoration: none;
  flex-shrink: 0;
}

.portal-logo:hover {
  color: #fff;
}

.portal-nav {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.portal-nav-label--short {
  display: none;
}

.portal-nav-item {
  padding: 0 10px;
  min-height: 36px;
  display: flex;
  align-items: center;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--portal-parchment-dim);
  text-decoration: none;
  border-radius: 4px;
  border-left: 3px solid transparent;
  text-align: center;
  line-height: 1.3;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.portal-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.portal-nav-item--demolib:hover {
  border-left-color: var(--demolib-accent);
  color: var(--demolib-accent-pale);
}

.portal-nav-item--augusta:hover {
  border-left-color: var(--augusta-accent);
  color: var(--augusta-accent-pale);
}

.portal-nav-item--koenigspaar:hover {
  border-left-color: var(--koenigspaar-accent);
  color: var(--koenigspaar-accent-light);
}

.portal-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--portal-parchment-dim);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

@media (min-width: 1024px) {
  .portal-hamburger {
    display: none;
  }
}

.portal-hamburger:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--portal-parchment);
}

.portal-mobile-menu {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-left: max(var(--portal-gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--portal-gutter), env(safe-area-inset-right, 0px));
}

.portal-mobile-menu.open {
  display: block;
}

.portal-mobile-nav-item {
  display: block;
  padding: 12px 16px;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 14px;
  color: var(--portal-parchment-dim);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.portal-mobile-nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.portal-mobile-nav-item--demolib:hover {
  border-left-color: var(--demolib-accent);
  color: var(--demolib-accent-pale);
}

.portal-mobile-nav-item--augusta:hover {
  border-left-color: var(--augusta-accent);
  color: var(--augusta-accent-pale);
}

.portal-mobile-nav-item--koenigspaar:hover {
  border-left-color: var(--koenigspaar-accent);
  color: var(--koenigspaar-accent-light);
}

/* ── HERO CONTENT ── */
.portal-hero {
  position: relative;
  z-index: 5;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
}

.portal-hero__main {
  flex: 1;
  padding-block: var(--portal-hero-pt) var(--portal-hero-pb);
}

.portal-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--portal-hero-gap);
  align-items: center;
  width: 100%;
}

.portal-hero__text {
  min-width: 0;
  width: 100%;
}

.portal-hero__visual {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .portal-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, var(--portal-visual-max));
    align-items: center;
  }
}

/* Breadcrumb */
.portal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 32px;
}

.portal-breadcrumb__link {
  color: var(--portal-parchment-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.portal-breadcrumb__link:hover {
  color: var(--portal-parchment);
}

.portal-breadcrumb__sep {
  color: rgba(240, 236, 228, 0.35);
}

.portal-breadcrumb__current {
  color: var(--portal-parchment);
}

/* Eyebrow */
.portal-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--portal-parchment-dim);
  margin-bottom: 24px;
}

.portal-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: linear-gradient(
    90deg,
    var(--demolib-accent),
    var(--augusta-accent),
    var(--koenigspaar-accent)
  );
  flex-shrink: 0;
}

/* Title */
.portal-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--portal-parchment);
  margin: 0 0 32px;
  text-wrap: pretty;
}

/* Body text */
.portal-body {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.65;
  color: rgba(240, 236, 228, 0.82);
  margin: 0 0 24px;
  max-width: 58ch;
  text-wrap: pretty;
}

.portal-body a {
  color: var(--demolib-accent-pale);
  text-decoration: none;
}

.portal-body a:hover {
  text-decoration: underline;
}

.portal-fn-ref {
  font-size: 12px;
  vertical-align: super;
  color: rgba(240, 236, 228, 0.5);
}

.portal-fn-ref a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  min-height: 20px;
  color: inherit;
  text-decoration: none;
}

.portal-fn-ref a:hover {
  text-decoration: underline;
  color: var(--portal-parchment);
}

/* Quote */
.portal-quote {
  margin: 32px 0 0;
  padding-left: 32px;
  border-left: 2px solid;
  border-image: linear-gradient(
    to bottom,
    var(--demolib-accent),
    var(--augusta-accent),
    var(--koenigspaar-accent)
  ) 1;
}

.portal-quote blockquote {
  margin: 0;
}

.portal-quote blockquote p {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--portal-parchment);
  margin: 0;
}

.portal-quote figcaption {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.portal-quote__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
}

.portal-quote__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-quote__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--portal-parchment);
}

.portal-quote__role {
  font-size: 14px;
  color: rgba(240, 236, 228, 0.55);
}

/* Jump link */
.portal-jump {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding: 10px 20px;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 14px;
  color: var(--portal-parchment-dim);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.portal-jump:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--portal-parchment);
}

/* ── STAGGERED IMAGE GALLERY (hero right column) ── */
.portal-gallery {
  --gallery-col-w: clamp(108px, 11vw, 176px);
  display: flex;
  justify-content: center;
  gap: clamp(16px, 2vw, 32px);
  width: 100%;
  max-width: calc(var(--gallery-col-w) * 3 + 2 * 32px);
  margin-inline: auto;
  padding-inline: 12px;
}

.portal-gallery__col {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: var(--gallery-col-w);
}

/* Vertical offsets — staggered columns (mobile / stacked default) */
.portal-gallery__col--a {
  padding-top: 40px;
}

.portal-gallery__col--b {
  padding-top: 64px;
}

.portal-gallery__col--c {
  padding-top: 0;
}

.portal-gallery__frame {
  position: relative;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.portal-gallery__frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.portal-gallery__frame img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center top;
  filter: sepia(8%) contrast(1.04) brightness(0.94);
  transition: filter 0.35s ease;
}

.portal-gallery__frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  z-index: 2;
}

.portal-gallery__frame:hover img {
  filter: sepia(0%) contrast(1.05) brightness(1);
}

.portal-gallery__frame--demolib::after {
  box-shadow: inset 0 0 0 1px rgba(0, 122, 194, 0.35);
}

.portal-gallery__frame--augusta::after {
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.35);
}

.portal-gallery__frame--koenigspaar::after {
  box-shadow: inset 0 0 0 1px rgba(201, 168, 76, 0.35);
}

.portal-gallery__frame--koenigspaar img {
  object-position: center top;
}

.portal-gallery__frame--letter img {
  object-position: center top;
}

/* ── GALLERY HOVER CAPTIONS ── */
.portal-gallery__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 36px 12px 12px;
  background: linear-gradient(transparent, rgba(9, 14, 20, 0.92));
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 12px;
  line-height: 1.35;
  color: var(--portal-parchment);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.portal-gallery__caption span {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-size: 10px;
  opacity: 0.7;
}

.portal-gallery__caption-source {
  font-size: 9px !important;
  opacity: 0.45 !important;
  margin-top: 4px !important;
  letter-spacing: 0.03em;
}

.portal-gallery__frame--koenigspaar .portal-gallery__caption { color: #e8d5a3; }
.portal-gallery__frame--augusta    .portal-gallery__caption { color: #c4aee8; }
.portal-gallery__frame--demolib    .portal-gallery__caption { color: #8ecae6; }

.portal-gallery__frame:hover .portal-gallery__caption {
  opacity: 1;
}

/* ── EDITORIAL SECTION ── */
.portal-editorial {
  position: relative;
  z-index: 5;
  background: var(--portal-ink-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(48px, 6vw, 80px) 0;
}

.portal-editorial__footnotes {
  list-style: decimal;
  list-style-position: inside;
  padding: 0;
  margin: 48px 0 0;
  max-width: 780px;
}

.portal-editorial__footnotes li {
  font-size: 12px;
  color: rgba(240, 236, 228, 0.4);
  margin-top: 8px;
  line-height: 1.6;
}

.portal-editorial__h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 500;
  color: var(--portal-parchment);
  margin: 0 0 32px;
  letter-spacing: -0.01em;
}

/* ── PORTAL CARDS ── */
.portal-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 32px);
}

.portal-card {
  display: block;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.portal-card:hover {
  transform: translateY(-6px);
}

.portal-card__img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.portal-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.2) 55%,
    transparent 100%
  );
}

.portal-card__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 40px 16px 16px;
}

.portal-card__title {
  display: block;
  color: #fff;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.portal-card__meta {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.portal-card__external {
  position: absolute;
  right: 16px;
  bottom: 16px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1;
}

.portal-card:hover .portal-card__external,
.portal-card:focus-visible .portal-card__external {
  color: #fff;
}

@media (hover: none) {
  .portal-card:active {
    transform: translateY(-2px);
  }

  .portal-gallery__frame:active {
    transform: translateY(-2px);
  }
}

.portal-card--demolib {
  box-shadow:
    0 0 0 1px rgba(0, 122, 194, 0.35),
    0 8px 32px rgba(0, 0, 0, 0.4);
}

.portal-card--demolib:hover {
  box-shadow:
    0 0 0 2px rgba(0, 122, 194, 0.6),
    0 16px 48px rgba(0, 0, 0, 0.5);
}

.portal-card--augusta {
  box-shadow:
    0 0 0 1px rgba(124, 58, 237, 0.35),
    0 8px 32px rgba(0, 0, 0, 0.4);
}

.portal-card--augusta:hover {
  box-shadow:
    0 0 0 2px rgba(124, 58, 237, 0.6),
    0 16px 48px rgba(0, 0, 0, 0.5);
}

.portal-card--koenigspaar {
  box-shadow:
    0 0 0 1px rgba(201, 168, 76, 0.35),
    0 8px 32px rgba(0, 0, 0, 0.4);
}

.portal-card--koenigspaar:hover {
  box-shadow:
    0 0 0 2px rgba(201, 168, 76, 0.6),
    0 16px 48px rgba(0, 0, 0, 0.5);
}

.portal-card--demolib .portal-card__img {
  object-position: center top;
}

.portal-card--augusta .portal-card__img {
  object-position: center 20%;
}

.portal-card--koenigspaar .portal-card__img {
  object-position: center 30%;
}

/* ── FOOTER ── */
.portal-footer {
  position: relative;
  z-index: 5;
  background: #1a1816;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Warm band — readable logos, harmonized with parchment palette */
.portal-footer__logos-band {
  background: #e8e4dc;
  border-bottom: 1px solid rgba(18, 16, 24, 0.08);
  padding: clamp(20px, 3vw, 32px) 0;
}

.portal-footer__logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: clamp(16px, 3vw, 32px);
}

.portal-footer__logos a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  max-width: min(258px, 32%);
  line-height: 0;
  opacity: 0.92;
  transition: opacity 0.2s;
}

.portal-footer__logos a:hover {
  opacity: 1;
}

.portal-footer__logos img {
  display: block;
  height: clamp(32px, 5vw, 48px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.portal-footer__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 0 24px;
  font-size: 14px;
  color: rgba(240, 236, 228, 0.68);
}

.portal-footer__links a {
  color: rgba(240, 236, 228, 0.68);
  text-decoration: none;
  margin-left: 24px;
  transition: color 0.2s;
}

.portal-footer__links a:hover {
  color: var(--portal-parchment);
}

/* ── ANIMATIONS ── */
@keyframes portal-fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.portal-fade-up {
  animation: portal-fade-up 0.8s ease forwards;
}

.portal-delay-1 { animation-delay: 0.1s; opacity: 0; }
.portal-delay-2 { animation-delay: 0.25s; opacity: 0; }
.portal-delay-3 { animation-delay: 0.4s; opacity: 0; }
.portal-delay-4 { animation-delay: 0.55s; opacity: 0; }
.portal-delay-5 { animation-delay: 0.7s; opacity: 0; }

/* ── LEGAL PAGES HEADER (shared) ── */
.portal-header--legal {
  position: sticky;
  top: 0;
}

body.portal-legal-page {
  background: #f9fafb;
  color: #111827;
}

.portal-legal-content {
  position: relative;
  z-index: 5;
  background: #f9fafb;
  color: #111827;
  padding: 64px 0 96px;
}

.portal-legal-card {
  max-width: 48rem;
  margin-inline: auto;
  padding-inline: var(--portal-gutter);
}

.portal-legal-card__inner {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 32px;
}

.portal-legal-card h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.875rem;
  font-weight: 500;
  color: #111827;
  margin: 0 0 32px;
  letter-spacing: -0.01em;
}

.portal-legal-card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  margin: 24px 0 8px;
}

.portal-legal-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin: 16px 0 8px;
}

.portal-legal-card p {
  font-size: 1rem;
  line-height: 1.625;
  color: #374151;
  margin: 8px 0;
}

.portal-legal-card a {
  color: #007ac2;
  text-decoration: none;
}

.portal-legal-card a:hover {
  text-decoration: underline;
}

.portal-legal-card ul,
.portal-legal-card ol {
  margin: 8px 0;
  padding-left: 1.5rem;
}

.portal-legal-card li {
  font-size: 1rem;
  line-height: 1.625;
  color: #374151;
  margin: 4px 0;
}

.portal-legal-card ol.upper-roman {
  list-style-type: upper-roman;
  padding-left: 1.75rem;
}

.portal-legal-card ol.upper-roman > li {
  margin-bottom: 40px;
}

.portal-legal-card__section {
  margin-top: 40px;
}

.portal-legal-footer {
  border-top: 1px solid #e5e7eb;
  padding: 24px 0;
  font-size: 14px;
  color: #6b7280;
  background: #f9fafb;
}

.portal-legal-footer__inner {
  max-width: 48rem;
  margin-inline: auto;
  padding-inline: var(--portal-gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

@media (min-width: 640px) {
  .portal-legal-footer__inner {
    flex-direction: row;
  }
}

.portal-legal-footer a {
  color: #6b7280;
  text-decoration: none;
  margin: 0 12px;
  transition: color 0.2s;
}

.portal-legal-footer a:hover {
  color: #111827;
}

/* ── RESPONSIVE ── */
@media (min-width: 1024px) and (max-width: 1279px) {
  .portal-nav-label--long {
    display: none;
  }

  .portal-nav-label--short {
    display: inline;
  }
}

@media (min-width: 1024px) {
  .portal-nav {
    display: flex;
  }
}

@media (min-width: 1024px) {
  .portal-gallery__col--c {
    order: 1;
    padding-top: 0;
  }

  .portal-gallery__col--b {
    order: 2;
    padding-top: 96px;
  }

  .portal-gallery__col--a {
    order: 3;
    padding-top: 144px;
  }
}

@media (max-width: 1024px) {
  .portal-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .portal-gallery {
    --gallery-col-w: clamp(96px, 28vw, 140px);
    gap: 12px;
  }

  .portal-gallery__col {
    gap: 16px;
  }

  .portal-gallery__col--a {
    padding-top: 40px;
  }

  .portal-gallery__col--b {
    padding-top: 64px;
  }

  .portal-gallery__col--c {
    padding-top: 0;
  }

  .portal-footer__meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .portal-footer__links a {
    margin-left: 0;
    margin-right: 16px;
  }

  .portal-footer__logos a {
    max-width: 30%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .portal-fade-up {
    animation: none;
    opacity: 1;
  }

  .portal-gallery__frame,
  .portal-card {
    transition: none;
  }
}

body.portal-menu-open {
  overflow: hidden;
}
