:root {
  --gold: #d4af37;
  --gold-bright: #ffdc73;
  --cream: #fff8e7;
  --soft-cream: #efd8ac;
  --wine: #3b0a10;
  --deep-wine: #1b0407;
  --ink: #2b070c;
  --page-bg:
    linear-gradient(rgba(255, 214, 104, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 214, 104, 0.035) 1px, transparent 1px),
    radial-gradient(ellipse 120% 85% at 50% 0%, #6d1f27 0%, #3b0a10 48%, #1b0407 100%);
  --page-bg-size: 34px 34px, 34px 34px, auto;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  font-family: "Inter", "Segoe UI", sans-serif;
  background: var(--page-bg);
  background-size: var(--page-bg-size);
  color: var(--cream);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 220, 115, 0.16), transparent 28%),
    radial-gradient(circle at 12% 72%, rgba(212, 175, 55, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(27, 4, 7, 0) 0%, rgba(27, 4, 7, 0.42) 100%);
  z-index: -2;
}

a {
  color: inherit;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.page::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 360px;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(27, 4, 7, 0.08), rgba(27, 4, 7, 0.86)),
    radial-gradient(ellipse at center top, rgba(59, 10, 16, 0) 0%, rgba(27, 4, 7, 0.44) 72%),
    url("assets/wedify-hero.png") 72% 34% / cover no-repeat;
  opacity: 0.64;
  -webkit-mask-image: linear-gradient(180deg, black 0%, black 72%, transparent 100%);
  mask-image: linear-gradient(180deg, black 0%, black 72%, transparent 100%);
  z-index: 0;
}

.page::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 360px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(27, 4, 7, 0.04), rgba(27, 4, 7, 0.26));
  z-index: 1;
}

.page > * {
  position: relative;
  z-index: 2;
}

.navbar {
  width: 100%;
  min-height: 64px;
  padding: 7px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  position: relative;
  z-index: 10;
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  position: relative;
  isolation: isolate;
  padding-left: 8px;
  text-decoration: none;
  color: inherit;
}

.brand::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 20%;
  width: 45px;
  height: 45px;
  background: url("assets/flower.png") no-repeat center / contain;
  opacity: 0.82;
  pointer-events: none;
  transform: translateY(-50%) rotate(-10deg);
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.24));
  z-index: 0;
}

.brand-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 6px 0 4px;
}

.brand-copy::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: 0;
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.85), transparent);
}

.logo-text {
  color: var(--gold);
  font-family: "Great Vibes", cursive;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.2;
  text-shadow: 0 0 24px rgba(255, 204, 0, 0.16);
}

.tagline {
  color: rgba(248, 232, 199, 0.62);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 220, 115, 0.24);
  border-radius: 999px;
  background: rgba(255, 248, 231, 0.06);
  color: rgba(255, 248, 231, 0.9);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 10px 14px;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 220, 115, 0.58);
  background: rgba(255, 220, 115, 0.11);
  outline: none;
}

.legal-hero {
  position: relative;
  padding: 58px 20px 26px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.eyebrow {
  margin: 0 0 12px;
  color: rgba(255, 248, 231, 0.72);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.legal-hero h1 {
  margin: 0;
  color: var(--cream);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(36px, 7vw, 62px);
  font-weight: 700;
  line-height: 1.05;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.4);
}

.hero-summary {
  max-width: 720px;
  margin: 18px auto 0;
  color: var(--soft-cream);
  font-size: 16px;
  line-height: 1.7;
}

.legal-shell {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 0 20px 42px;
}

.legal-panel {
  border: 1px solid rgba(212, 175, 55, 0.48);
  border-radius: 8px;
  background:
    linear-gradient(155deg, rgba(67, 13, 21, 0.96), rgba(31, 5, 9, 0.98)),
    radial-gradient(circle at 50% 0%, rgba(255, 220, 115, 0.08), transparent 34%);
  box-shadow:
    0 0 15px rgba(212, 175, 55, 0.22),
    0 22px 44px rgba(0, 0, 0, 0.32);
  padding: clamp(22px, 4vw, 38px);
}

.notice {
  margin: 0 0 28px;
  padding: 16px;
  border: 1px solid rgba(255, 220, 115, 0.28);
  border-radius: 8px;
  background: rgba(255, 220, 115, 0.07);
  color: #fff2c8;
  font-size: 14px;
  line-height: 1.65;
}

.legal-panel section + section {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid rgba(212, 175, 55, 0.18);
}

.legal-panel h2 {
  margin: 0 0 12px;
  color: var(--gold-bright);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.legal-panel h3 {
  margin: 20px 0 8px;
  color: #fff2c8;
  font-size: 15px;
  line-height: 1.45;
}

.legal-panel p,
.legal-panel li {
  color: #f2ddb6;
  font-size: 14.5px;
  line-height: 1.72;
}

.legal-panel p {
  margin: 0;
}

.legal-panel p + p {
  margin-top: 12px;
}

.legal-panel ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
}

.legal-panel strong {
  color: #fff8e7;
}

.legal-panel a {
  color: #ffdc73;
  text-decoration-color: rgba(255, 220, 115, 0.46);
  text-underline-offset: 3px;
}

.meta-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 28px;
}

.meta-item {
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 8px;
  background: rgba(25, 4, 8, 0.38);
  padding: 12px;
}

.meta-item span {
  display: block;
  color: rgba(248, 232, 199, 0.6);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.meta-item strong {
  display: block;
  margin-top: 6px;
  color: #fff2c8;
  font-size: 13px;
  line-height: 1.45;
}

.legal-footer {
  padding: 18px 20px 20px;
  text-align: center;
  color: rgba(203, 191, 163, 0.78);
  font-size: 13px;
}

.legal-footer a {
  color: #ffdc73;
  text-decoration: none;
}

@media (max-width: 768px) {
  .page::before {
    background:
      linear-gradient(180deg, rgba(27, 4, 7, 0.08), rgba(27, 4, 7, 0.86)),
      radial-gradient(ellipse at 82% 24%, rgba(59, 10, 16, 0) 0%, rgba(27, 4, 7, 0.48) 72%),
      url("assets/wedify-hero.png") 84% 34% / cover no-repeat;
  }

  .navbar {
    min-height: 58px;
    padding: 6px 16px;
  }

  .brand::before {
    left: -9px;
    width: 52px;
    height: 52px;
  }

  .logo-text {
    font-size: 30px;
  }

  .tagline {
    font-size: 9px;
  }

  .nav-actions {
    gap: 7px;
  }

  .nav-link {
    min-height: 34px;
    padding: 8px 10px;
    font-size: 10px;
  }

  .legal-hero {
    padding: 44px 16px 24px;
  }

  .legal-shell {
    padding: 0 14px 34px;
  }

  .legal-panel {
    padding: 20px;
  }

  .meta-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .nav-actions {
    flex-direction: column;
    align-items: flex-end;
  }

  .nav-link {
    min-height: 30px;
    width: 92px;
  }

  .legal-panel p,
  .legal-panel li {
    font-size: 14px;
  }
}

@media print {
  body {
    background: #fff;
    color: #1b1b1b;
  }

  body::before,
  .page::before,
  .page::after,
  .navbar,
  .legal-footer {
    display: none;
  }

  .legal-hero,
  .legal-shell {
    padding: 0;
  }

  .legal-hero {
    text-align: left;
  }

  .legal-hero h1,
  .legal-panel h2,
  .legal-panel h3,
  .legal-panel p,
  .legal-panel li,
  .meta-item strong,
  .notice {
    color: #1b1b1b;
  }

  .legal-panel,
  .meta-item,
  .notice {
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }
}
