/* ==================================================================
   PROPHET HANRICK HUNT
   LEGAL PAGES — LEVEL 3
   Privacy, Terms, Accessibility and Cookie pages
   ================================================================== */

body.legal-page {
  --legal-ink: #282116;
  --legal-muted: #74654f;
  --legal-paper: #fffdf5;
  --legal-paper-deep: #f5ecd7;
  --legal-gold: #d7ad42;
  --legal-gold-light: #f4d884;
  --legal-border: rgba(122, 91, 31, 0.28);
  overflow-x: clip;
}

body.legal-page *,
body.legal-page *::before,
body.legal-page *::after {
  box-sizing: border-box;
}

body.legal-page .legal-hero {
  position: relative;
  isolation: isolate;

  min-height: 680px;
  padding:
    clamp(70px, 8vw, 130px)
    clamp(22px, 6vw, 110px);

  display: grid;
  grid-template-columns:
    minmax(0, 1.2fr)
    minmax(320px, 0.8fr);

  gap: clamp(44px, 7vw, 120px);
  align-items: center;

  overflow: hidden;

  color: #f9f5e9;

  background:
    radial-gradient(
      circle at 78% 18%,
      rgba(240, 199, 93, 0.16),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      #030303,
      #11100c 60%,
      #050505
    );
}

body.legal-page .legal-hero::after {
  content: "";

  position: absolute;
  inset: auto 0 0;
  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(244, 216, 132, 0.7),
      transparent
    );
}

body.legal-page .legal-hero-glow {
  position: absolute;
  z-index: -1;
  top: -20%;
  right: -8%;

  width: min(55vw, 820px);
  aspect-ratio: 1;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(224, 178, 63, 0.12),
      transparent 68%
    );

  filter: blur(10px);
}

body.legal-page .legal-hero-copy {
  max-width: 850px;
}

body.legal-page .legal-hero-copy h1 {
  max-width: 12ch;
  margin:
    10px
    0
    24px;

  color: #f8e6ad;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size:
    clamp(3.5rem, 7.2vw, 7.8rem);

  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.045em;

  text-wrap: balance;
}

body.legal-page .legal-hero-lead {
  max-width: 64ch;

  color: rgba(255, 255, 255, 0.82);

  font-size:
    clamp(1.05rem, 1.5vw, 1.35rem);

  line-height: 1.75;
}

body.legal-page .legal-effective-date {
  margin-top: 32px;
  padding-top: 22px;

  display: flex;
  gap: 18px;
  align-items: center;

  border-top:
    1px solid rgba(244, 216, 132, 0.2);
}

body.legal-page .legal-effective-date span {
  color: rgba(255, 255, 255, 0.52);

  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body.legal-page .legal-effective-date strong {
  color: var(--legal-gold-light);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 1.08rem;
}

body.legal-page .legal-hero-summary {
  display: grid;
  gap: 14px;
}

body.legal-page .legal-hero-summary > div {
  padding:
    clamp(22px, 3vw, 34px);

  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 18px;

  border:
    1px solid rgba(244, 216, 132, 0.18);

  background:
    linear-gradient(
      145deg,
      rgba(244, 216, 132, 0.065),
      transparent 48%
    ),
    rgba(0, 0, 0, 0.42);

  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.26);
}

body.legal-page .legal-hero-summary span {
  grid-row: 1 / 3;

  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  border:
    1px solid rgba(244, 216, 132, 0.35);

  border-radius: 50%;

  color: var(--legal-gold-light);

  font-size: 0.65rem;
  font-weight: 900;
}

body.legal-page .legal-hero-summary strong {
  color: #fff2c5;
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 1.08rem;
}

body.legal-page .legal-hero-summary p {
  margin: 0;

  color: rgba(255, 255, 255, 0.65);

  font-size: 0.9rem;
  line-height: 1.55;
}


/* POLICY WORKSPACE */

body.legal-page .legal-policy-section {
  padding:
    clamp(60px, 8vw, 130px)
    clamp(18px, 5vw, 86px);

  display: grid;
  grid-template-columns:
    minmax(210px, 290px)
    minmax(0, 980px);

  gap: clamp(28px, 5vw, 78px);
  justify-content: center;
  align-items: start;

  background:
    linear-gradient(
      180deg,
      #090909,
      #020202 70%
    );
}

body.legal-page .legal-policy-index {
  position: sticky;
  top: 28px;

  padding:
    26px;

  display: grid;
  gap: 5px;

  border:
    1px solid rgba(215, 173, 66, 0.22);

  background:
    linear-gradient(
      150deg,
      rgba(215, 173, 66, 0.07),
      transparent 42%
    ),
    #0c0c0b;
}

body.legal-page .legal-policy-index p {
  margin:
    0
    0
    14px;

  color: var(--legal-gold-light);

  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body.legal-page .legal-policy-index a {
  padding:
    9px
    10px;

  color: rgba(255, 255, 255, 0.68);

  font-size: 0.82rem;
  line-height: 1.35;
  text-decoration: none;

  border-left:
    1px solid rgba(215, 173, 66, 0.15);

  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

body.legal-page .legal-policy-index a:hover,
body.legal-page .legal-policy-index a:focus-visible {
  color: #fff0bd;
  border-left-color: var(--legal-gold);
  background: rgba(215, 173, 66, 0.07);
}


/* WHITE READING PAGE */

body.legal-page .legal-reading-page {
  position: relative;

  width: 100%;

  padding:
    clamp(46px, 6vw, 86px)
    clamp(28px, 6vw, 92px);

  overflow: hidden;

  color: var(--legal-ink);

  border:
    1px solid var(--legal-border);

  background:
    linear-gradient(
      90deg,
      rgba(92, 68, 29, 0.028),
      transparent 11%,
      transparent 89%,
      rgba(92, 68, 29, 0.028)
    ),
    linear-gradient(
      180deg,
      var(--legal-paper),
      var(--legal-paper-deep)
    );

  box-shadow:
    0 38px 100px rgba(0, 0, 0, 0.56),
    inset 0 0 0 1px rgba(255, 255, 255, 0.68),
    inset 0 0 90px rgba(102, 74, 28, 0.045);
}

body.legal-page .legal-reading-page::before {
  content: "";

  position: absolute;
  inset: 0;

  pointer-events: none;

  opacity: 0.35;

  background:
    repeating-linear-gradient(
      0deg,
      rgba(84, 61, 24, 0.02) 0,
      rgba(84, 61, 24, 0.02) 1px,
      transparent 1px,
      transparent 5px
    );
}

body.legal-page .legal-reading-page > * {
  position: relative;
  z-index: 1;
}

body.legal-page .legal-reading-header {
  padding-bottom:
    clamp(32px, 5vw, 56px);

  border-bottom:
    1px solid rgba(87, 65, 31, 0.24);
}

body.legal-page .legal-reading-header h2 {
  margin:
    8px
    0
    14px;

  color: #2d2415;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size:
    clamp(2.6rem, 5vw, 5.2rem);

  font-weight: 500;
  line-height: 0.98;
}

body.legal-page .legal-reading-header > p:last-child {
  max-width: 70ch;

  margin: 0;

  color: var(--legal-muted);

  font-size: 1rem;
  line-height: 1.7;
}


/* POLICY SECTIONS */

body.legal-page .legal-policy-block {
  scroll-margin-top: 24px;

  padding:
    clamp(38px, 5vw, 64px)
    0;

  display: grid;
  grid-template-columns:
    54px
    minmax(0, 1fr);

  gap: clamp(16px, 3vw, 34px);

  border-bottom:
    1px solid rgba(87, 65, 31, 0.18);
}

body.legal-page .legal-section-number {
  width: 46px;
  height: 46px;

  display: grid;
  place-items: center;

  border:
    1px solid rgba(154, 107, 23, 0.46);

  border-radius: 50%;

  color: #875e17;

  font-size: 0.7rem;
  font-weight: 900;
}

body.legal-page .legal-policy-block h3 {
  margin:
    0
    0
    18px;

  color: #332716;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size:
    clamp(1.85rem, 3.1vw, 3.05rem);

  font-weight: 500;
  line-height: 1.04;

  text-wrap: balance;
}

body.legal-page .legal-policy-block h4 {
  margin:
    30px
    0
    10px;

  color: #6d4d19;

  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

body.legal-page .legal-policy-block p,
body.legal-page .legal-policy-block li {
  color: #453a2b;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size:
    clamp(1rem, 1.35vw, 1.13rem);

  line-height: 1.82;
}

body.legal-page .legal-policy-block p {
  margin:
    0
    0
    18px;
}

body.legal-page .legal-policy-block ul {
  margin:
    18px
    0
    24px;

  padding-left: 1.3rem;
}

body.legal-page .legal-policy-block li {
  margin-bottom: 10px;
  padding-left: 6px;
}

body.legal-page .legal-policy-block li::marker {
  color: #a77822;
}

body.legal-page .legal-callout {
  margin-top: 28px;
  padding:
    24px
    26px;

  border-left:
    3px solid var(--legal-gold);

  background:
    rgba(215, 173, 66, 0.10);
}

body.legal-page .legal-callout-caution {
  border-left-color: #9b6d1c;
  background: rgba(155, 109, 28, 0.09);
}

body.legal-page .legal-callout strong {
  display: block;
  margin-bottom: 7px;

  color: #634713;

  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.legal-page .legal-callout p {
  margin: 0;
  font-size: 0.98rem;
}

body.legal-page .legal-contact-block address {
  margin:
    24px
    0;

  padding:
    24px;

  display: grid;
  gap: 8px;

  font-style: normal;

  border:
    1px solid rgba(122, 91, 31, 0.28);

  background: rgba(255, 255, 255, 0.42);
}

body.legal-page .legal-contact-block address strong {
  color: #332716;
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 1.18rem;
}

body.legal-page .legal-contact-block address a {
  width: fit-content;
  color: #77551a;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body.legal-page .legal-response-note {
  color: #6f6049;
  font-size: 0.95rem;
}

body.legal-page .legal-document-footer {
  padding-top:
    clamp(36px, 5vw, 56px);

  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}

body.legal-page .legal-document-footer span {
  color: #a77720;
  font-size: 1.2rem;
}

body.legal-page .legal-document-footer p {
  margin: 0;

  color: #756750;

  font-size: 0.86rem;
  line-height: 1.65;
}


/* TABLET */

@media (max-width: 1040px) {

  body.legal-page .legal-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  body.legal-page .legal-hero-copy h1 {
    max-width: 13ch;
  }

  body.legal-page .legal-hero-summary {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }

  body.legal-page .legal-hero-summary > div {
    grid-template-columns: 1fr;
  }

  body.legal-page .legal-hero-summary span {
    grid-row: auto;
  }

  body.legal-page .legal-policy-section {
    grid-template-columns: 1fr;
  }

  body.legal-page .legal-policy-index {
    position: relative;
    top: auto;

    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  body.legal-page .legal-policy-index p {
    grid-column: 1 / -1;
  }
}


/* MOBILE */

@media (max-width: 680px) {

  body.legal-page .legal-hero {
    padding:
      52px
      16px
      58px;

    gap: 34px;
  }

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

  body.legal-page .legal-hero-summary {
    grid-template-columns: 1fr;
  }

  body.legal-page .legal-policy-section {
    padding:
      36px
      12px
      58px;
  }

  body.legal-page .legal-policy-index {
    padding: 18px;
    grid-template-columns: 1fr;
  }

  body.legal-page .legal-reading-page {
    padding:
      38px
      22px;
  }

  body.legal-page .legal-policy-block {
    grid-template-columns: 1fr;
    padding:
      34px
      0;
  }

  body.legal-page .legal-section-number {
    width: 40px;
    height: 40px;
  }

  body.legal-page .legal-policy-block h3 {
    font-size:
      clamp(1.8rem, 9vw, 2.5rem);
  }

  body.legal-page .legal-policy-block p,
  body.legal-page .legal-policy-block li {
    font-size: 1rem;
    line-height: 1.74;
  }

  body.legal-page .legal-effective-date {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
}


/* PRINT */

@media print {

  body.legal-page .ministry-masthead,
  body.legal-page .legal-hero,
  body.legal-page .legal-policy-index,
  body.legal-page .site-footer {
    display: none !important;
  }

  body.legal-page .legal-policy-section {
    display: block;
    padding: 0;
    background: #fff;
  }

  body.legal-page .legal-reading-page {
    padding: 0;
    border: 0;
    box-shadow: none;
    background: #fff;
  }
}
