:root {
  --navy: #061a2f;
  --navy-deep: #020b14;
  --navy-soft: #0b2f55;
  --jade: #00766b;
  --jade-light: #12b7a6;
  --ivory: #fbf7ee;
  --ivory-deep: #f1eadc;
  --champagne: #c79d63;
  --white: #ffffff;
  --text: #102538;
  --muted: #647487;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 8%, rgba(199, 157, 99, 0.14), transparent 27%),
    radial-gradient(circle at 90% 12%, rgba(18, 183, 166, 0.15), transparent 30%),
    linear-gradient(135deg, var(--ivory) 0%, #f5fbf9 48%, #ffffff 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(6, 26, 47, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 26, 47, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 18%, #000, transparent 76%);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 12px 18px;
  border-radius: 999px;
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 14px 34px rgba(6, 26, 47, 0.2);
  font-weight: 800;
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

a {
  color: inherit;
  text-decoration: none;
}

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

section {
  scroll-margin-top: 124px;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  width: min(1180px, calc(100% - 32px));
  min-height: 74px;
  margin: 14px auto 0;
  padding: 10px 12px 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(251, 247, 238, 0.68));
  box-shadow:
    0 24px 72px rgba(6, 26, 47, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  padding: 5px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(6, 26, 47, 0.07);
  border-radius: 18px;
  background: linear-gradient(145deg, #ffffff, #eaf6f2);
  box-shadow:
    0 12px 30px rgba(6, 26, 47, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text small {
  color: var(--jade);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-text strong {
  color: var(--navy);
  font-size: 1.04rem;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.back-button {
  min-height: 48px;
  padding: 6px 8px 6px 18px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  box-shadow:
    0 18px 44px rgba(6, 26, 47, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  font-size: 0.8rem;
  font-weight: 900;
  transition:
    transform 0.34s var(--ease),
    box-shadow 0.34s ease;
}

.back-button em {
  font-style: normal;
}

.back-button span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.page-main {
  padding: clamp(42px, 6vw, 82px) 0 clamp(80px, 10vw, 140px);
}

.legal-hero {
  position: relative;
  overflow: hidden;
  min-height: 450px;
  padding: clamp(38px, 7vw, 82px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: clamp(34px, 5vw, 58px);
  color: var(--white);
  background:
    radial-gradient(circle at 14% 20%, rgba(18, 183, 166, 0.20), transparent 31%),
    radial-gradient(circle at 88% 78%, rgba(199, 157, 99, 0.13), transparent 30%),
    linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 52%, #03101d 100%);
  box-shadow:
    0 36px 100px rgba(6, 26, 47, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.legal-hero::before {
  content: attr(data-word);
  position: absolute;
  top: -0.12em;
  right: -0.04em;
  color: rgba(255, 255, 255, 0.035);
  font-size: clamp(8rem, 21vw, 18rem);
  font-weight: 900;
  letter-spacing: -0.1em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.hero-kicker {
  position: relative;
  z-index: 1;
  margin-bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--jade-light);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

.legal-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 940px;
  font-size: clamp(3.4rem, 8.5vw, 7.8rem);
  font-weight: 800;
  letter-spacing: -0.09em;
  line-height: 0.88;
  text-wrap: balance;
}

.legal-hero p {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.66);
  font-size: clamp(1rem, 1.7vw, 1.12rem);
  line-height: 1.75;
}

.hero-meta {
  position: absolute;
  top: clamp(26px, 4vw, 48px);
  right: clamp(26px, 4vw, 48px);
  z-index: 1;
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.72rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.legal-layout {
  margin-top: clamp(42px, 6vw, 72px);
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: 110px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(251, 247, 238, 0.58));
  box-shadow:
    0 20px 54px rgba(6, 26, 47, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.legal-nav strong {
  display: block;
  margin-bottom: 18px;
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.legal-nav-links {
  display: grid;
  gap: 5px;
}

.legal-nav a {
  position: relative;
  padding: 10px 12px 10px 18px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.35;
  transition:
    color 0.28s ease,
    background 0.28s ease,
    transform 0.28s var(--ease);
}

.legal-nav a::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--jade-light);
  transform: translateY(-50%);
  opacity: 0.45;
}

.legal-content {
  display: grid;
  gap: 16px;
}

.legal-section {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: clamp(26px, 3.5vw, 36px);
  background:
    radial-gradient(circle at 96% 0%, rgba(18, 183, 166, 0.08), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(251, 247, 238, 0.64));
  box-shadow:
    0 20px 62px rgba(6, 26, 47, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: section-in 0.72s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}

.legal-section::before {
  content: attr(data-number);
  position: absolute;
  top: 20px;
  right: 24px;
  color: rgba(6, 26, 47, 0.055);
  font-size: clamp(3.4rem, 7vw, 5.7rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 1;
}

.legal-section.notice {
  border-color: rgba(18, 183, 166, 0.20);
  background:
    radial-gradient(circle at 90% 10%, rgba(18, 183, 166, 0.15), transparent 34%),
    linear-gradient(145deg, rgba(234, 246, 242, 0.92), rgba(255, 255, 255, 0.78));
}

.legal-section h2 {
  position: relative;
  z-index: 1;
  max-width: calc(100% - 70px);
  margin-bottom: 20px;
  color: var(--navy);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.78;
}

.legal-section p + p,
.legal-section p + ul,
.legal-section ul + p {
  margin-top: 16px;
}

.legal-section ul {
  padding-left: 20px;
}

.legal-section li + li {
  margin-top: 7px;
}

.legal-section strong {
  color: var(--text);
  font-weight: 800;
}

.legal-section a {
  color: var(--jade);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(0, 118, 107, 0.25);
  text-underline-offset: 3px;
}

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 72px 0 28px;
  color: var(--white);
  background:
    radial-gradient(circle at 16% 20%, rgba(18, 183, 166, 0.13), transparent 30%),
    linear-gradient(135deg, var(--navy-deep), var(--navy) 56%, #020812);
}

.site-footer::before {
  content: "OINVILLE";
  position: absolute;
  top: -0.16em;
  right: -0.04em;
  color: rgba(255, 255, 255, 0.025);
  font-size: clamp(7rem, 20vw, 18rem);
  font-weight: 900;
  letter-spacing: -0.1em;
  pointer-events: none;
}

.footer-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: end;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(18, 183, 166, 0.18));
}

.footer-brand span {
  display: grid;
  gap: 2px;
}

.footer-brand small {
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-brand strong {
  font-size: 1.05rem;
  font-weight: 900;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 20px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 700;
  transition: color 0.25s ease;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  margin-top: 42px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.72rem;
}

@media (hover: hover) {
  .back-button:hover {
    transform: translateY(-3px);
    box-shadow:
      0 24px 54px rgba(6, 26, 47, 0.30),
      inset 0 1px 0 rgba(255, 255, 255, 0.16);
  }

  .legal-nav a:hover {
    color: var(--jade);
    background: rgba(18, 183, 166, 0.08);
    transform: translateX(3px);
  }

  .footer-links a:hover {
    color: var(--jade-light);
  }
}

@keyframes section-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .legal-nav {
    position: relative;
    top: auto;
    overflow-x: auto;
    padding: 16px;
  }

  .legal-nav strong {
    margin: 0 0 12px 4px;
  }

  .legal-nav-links {
    display: flex;
    width: max-content;
    min-width: 100%;
  }

  .legal-nav a {
    white-space: nowrap;
  }
}

@media (max-width: 600px) {
  .container,
  .site-header {
    width: min(100% - 22px, 1180px);
  }

  .site-header {
    top: 8px;
    min-height: 66px;
    margin-top: 8px;
    padding: 8px 9px 8px 12px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 15px;
  }

  .brand-text small {
    display: none;
  }

  .brand-text strong {
    font-size: 0.88rem;
  }

  .back-button {
    min-height: 44px;
    padding-left: 15px;
  }

  .back-button span {
    width: 30px;
    height: 30px;
  }

  .back-button > em {
    display: none;
  }

  .page-main {
    padding-top: 30px;
  }

  .legal-hero {
    min-height: 420px;
    padding: 32px 24px;
    border-radius: 32px;
  }

  .hero-meta {
    top: 22px;
    right: 22px;
  }

  .legal-hero h1 {
    font-size: clamp(3rem, 15vw, 4.7rem);
  }

  .legal-hero p {
    margin-top: 24px;
    font-size: 0.94rem;
  }

  .legal-layout {
    margin-top: 34px;
  }

  .legal-section {
    padding: 28px 22px;
    border-radius: 27px;
  }

  .legal-section::before {
    top: 18px;
    right: 18px;
  }

  .legal-section h2 {
    max-width: calc(100% - 50px);
  }

  .legal-section p,
  .legal-section li {
    font-size: 0.91rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
