:root {
  --gold: #d8af46;
  --red: #df1734;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  color: #f5f3ee;
  background: #020303;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .62)),
    radial-gradient(circle at 18% 12%, rgba(225, 207, 181, .14), transparent 34%),
    url('brand-pages-background.png') center top / cover no-repeat;
}

.wrap {
  position: relative;
  width: min(calc(100% - 48px), var(--max));
  margin: auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: rgba(2, 3, 3, .72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.nav { height: 96px; display: flex; align-items: center; }
.back-button, .primary-button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

.back-button {
  min-width: 118px;
  padding: 12px 23px;
  border: 1px solid rgba(226, 188, 92, .9);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(145deg, rgba(46, 46, 45, .88), rgba(2, 2, 2, .94));
  box-shadow: 0 0 22px rgba(214, 169, 45, .3), inset 0 1px rgba(255, 255, 255, .16);
}

.legal-hero {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 96px);
  padding: 58px 0 72px;
  display: grid;
  align-items: center;
}

.legal-panel {
  --panel-cut: 26px;
  --panel-cut-line: 37px;
  position: relative;
  overflow: hidden;
  width: min(100%, 960px);
  margin-inline: auto;
  padding: clamp(40px, 5vw, 60px) clamp(38px, 5.5vw, 66px) clamp(42px, 5vw, 58px);
  clip-path: polygon(0 0, calc(100% - var(--panel-cut)) 0, 100% var(--panel-cut), 100% 100%, 0 100%);
  border: 1px solid rgba(137, 147, 159, .78);
  border-left: 3px solid var(--red);
  border-radius: 0;
  background:
    linear-gradient(112deg, transparent 18%, rgba(255, 255, 255, .085) 43%, transparent 66%),
    linear-gradient(110deg, rgba(3, 4, 5, .64), rgba(3, 4, 5, .46));
  background-size: 220% 100%, 100% 100%;
  -webkit-backdrop-filter: blur(10px) saturate(.86);
  backdrop-filter: blur(10px) saturate(.86);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .025),
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 0 0 5px rgba(31, 39, 53, .24),
    0 0 0 6px rgba(112, 126, 148, .10),
    0 22px 64px rgba(0, 0, 0, .34);
}

@property --silver-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.legal-panel::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0 0 0 2px;
  padding: 1px;
  pointer-events: none;
  background: conic-gradient(
    from var(--silver-angle),
    #555e69 0deg,
    #919ca8 34deg,
    #fbfdff 44deg,
    #727c87 54deg,
    #4d5661 112deg,
    #a8b2bd 170deg,
    #ffffff 180deg,
    #6b7580 190deg,
    #4c5560 252deg,
    #9da8b4 306deg,
    #f8fbff 316deg,
    #59636e 326deg,
    #555e69 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  filter: drop-shadow(0 0 2px rgba(241, 247, 253, .34));
  animation: silver-frame-flow 7s linear infinite;
}

.legal-panel::after {
  content: "";
  position: absolute;
  z-index: 4;
  top: calc(var(--panel-cut) - 1px);
  right: 0;
  width: var(--panel-cut-line);
  height: 1px;
  pointer-events: none;
  transform: rotate(45deg);
  transform-origin: right center;
  background: linear-gradient(90deg, #69737e 0%, #f9fcff 48%, #8a95a1 100%);
  box-shadow: 0 0 4px rgba(238, 246, 255, .34);
}

@keyframes silver-frame-flow { to { --silver-angle: 360deg; } }

.panel-glow {
  position: absolute;
  right: 9%;
  top: -90px;
  width: 330px;
  height: 210px;
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(225, 184, 74, .11), transparent 68%);
  filter: blur(12px);
}

.eyebrow { position: relative; color: #ef9caf; font-size: .75rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow::before { content: ""; display: inline-block; width: 54px; height: 2px; margin: 0 18px 3px 0; background: var(--red); }
h1 { position: relative; margin: 18px 0 11px; font: 400 clamp(3rem, 5.8vw, 4.6rem)/.94 "Iowan Old Style", Baskerville, Georgia, serif; letter-spacing: -.045em; }
.lead { position: relative; max-width: 690px; margin: 0; color: #c9cccf; font-size: 1.05rem; line-height: 1.7; }
.details { position: relative; max-width: 790px; margin: 36px 0 0; border-top: 1px solid rgba(219, 181, 80, .3); }
.details > div { display: grid; grid-template-columns: 190px 1fr; gap: 26px; padding: 17px 0; border-bottom: 1px solid rgba(255, 255, 255, .13); }
dt { color: #969ba0; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
dd { margin: 0; color: #fff; font: 400 clamp(1.05rem, 2vw, 1.32rem)/1.4 "Iowan Old Style", Baskerville, Georgia, serif; }
.details > div:nth-child(3) dd { color: #f1d995; letter-spacing: .06em; }
.details a { color: inherit; text-decoration: none; }
.details a:hover, .details a:focus-visible { color: #f1d995; text-decoration: underline; text-underline-offset: 5px; }
.notice { position: relative; max-width: 790px; margin: 24px 0 0; padding: 17px 20px; border-left: 2px solid rgba(216, 175, 70, .75); color: #bfc3c6; background: rgba(255, 255, 255, .035); font-size: .86rem; line-height: 1.6; }
.legal-content { position: relative; max-width: 800px; margin-top: 34px; color: #d6d8da; font-size: .94rem; line-height: 1.72; }
.legal-content section { padding: 23px 0; border-top: 1px solid rgba(255, 255, 255, .13); }
.legal-content section:first-child { border-top-color: rgba(219, 181, 80, .3); }
.legal-content h2 { margin: 0 0 13px; color: #f5e3b2; font: 400 1.45rem/1.25 "Iowan Old Style", Baskerville, Georgia, serif; }
.legal-content p { margin: 0 0 11px; }
.legal-content p:last-child { margin-bottom: 0; }
.legal-content ol, .legal-content ul { margin: 10px 0 0; padding-left: 22px; }
.legal-content li { margin: 7px 0; }
.legal-content a { color: #ecd488; text-underline-offset: 4px; }
.legal-meta { color: #969ba0; font-size: .78rem; }
.legal-links { display: flex; justify-content: flex-end; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.legal-links a { color: #d5bd79; text-underline-offset: 4px; }
.actions { position: relative; display: flex; align-items: center; gap: 25px; margin-top: 27px; }
.primary-button { min-width: 220px; padding: 14px 30px; border: 1px solid #e5bb4c; border-radius: 999px; color: #fff; font-weight: 750; background: linear-gradient(145deg, #363632 0%, #050505 72%); box-shadow: 0 0 25px rgba(215, 170, 45, .35), inset 0 1px rgba(255, 255, 255, .16); }
.text-link { color: #e2d29f; text-underline-offset: 7px; }

footer { position: relative; z-index: 1; border-top: 1px solid rgba(255, 255, 255, .1); background: rgba(2, 3, 3, .84); backdrop-filter: blur(16px); color: #999fa4; }
.foot { display: grid; grid-template-columns: 290px 1fr; gap: 55px; align-items: center; padding: 36px 0; }
.footer-logo { width: 270px; height: auto; }
.footer-copy { text-align: right; font-size: .78rem; line-height: 1.65; }
.footer-copy p { margin: 0 0 5px; }
.footer-copy span { color: #d5bd79; }

@media (max-width: 900px), (max-device-width: 900px) {
  .wrap { width: calc(100% - 32px); }
  .legal-panel { width: 100%; max-width: 100%; }
  .legal-panel h1 { max-width: 100%; overflow-wrap: anywhere; hyphens: auto; }
}

@media (max-width: 700px) {
  body { overflow-x: clip; }
  header {
    position: sticky;
    top: 0;
    z-index: 30;
    -webkit-backdrop-filter: blur(14px);
  }
  body::before {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, .58)),
      radial-gradient(circle at 18% 10%, rgba(225, 207, 181, .16), transparent 32%),
      url('brand-pages-mobile.png') center top / cover no-repeat;
  }
  .wrap { width: min(calc(100% - 32px), var(--max)); }
  .nav { height: 78px; }
  .back-button { min-width: 104px; padding: 10px 20px; }
  .legal-hero { min-height: auto; padding: clamp(160px, 44vw, 260px) 0 48px; }
  .legal-panel {
    --panel-cut: 14px;
    --panel-cut-line: 20px;
    width: 100%;
    padding: 32px 18px 30px;
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, .025),
      inset 0 1px 0 rgba(255, 255, 255, .08),
      0 0 0 3px rgba(31, 39, 53, .22),
      0 0 0 4px rgba(112, 126, 148, .08),
      0 18px 48px rgba(0, 0, 0, .32);
  }
  .eyebrow { font-size: .66rem; letter-spacing: .15em; }
  .eyebrow::before { width: 34px; margin-right: 11px; }
  h1 { margin-top: 17px; font-size: clamp(2.15rem, 10vw, 3.3rem); }
  .lead { font-size: .95rem; }
  .details { margin-top: 30px; }
  .details > div { grid-template-columns: 1fr; gap: 7px; padding: 15px 0; }
  .notice { margin-top: 20px; padding: 15px 17px; font-size: .8rem; }
  .legal-content { margin-top: 27px; font-size: .88rem; }
  .legal-content section { padding: 19px 0; }
  .legal-content h2 { font-size: 1.28rem; }
  .actions { align-items: stretch; flex-direction: column; gap: 19px; }
  .primary-button { width: 100%; }
  .text-link { text-align: center; }
  .foot { grid-template-columns: 1fr; gap: 18px; }
  .footer-logo { width: 225px; }
  .footer-copy { text-align: left; }
  .legal-links { justify-content: flex-start; gap: 12px 16px; }
  .legal-long-page .legal-panel {
    --panel-cut: 28px;
    --panel-cut-line: 40px;
    width: calc(100% - 24px);
    padding: 26px 20px 30px;
  }
  .legal-long-page .legal-content { margin-top: 23px; }
  .legal-long-page .legal-content section { padding: 17px 0; }
}

@media (max-width: 430px) {
  .legal-long-page .legal-panel { width: calc(100% - 20px); }
  .legal-long-page h1 { font-size: clamp(2rem, 9.4vw, 2.7rem); line-height: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .legal-panel::before { animation: none; }
}
