@font-face {
  font-family: "Aref Ruqaa";
  src: url("assets/fonts/aref-ruqaa-regular.woff2") format("woff2");
  font-display: swap;
}

:root {
  --ink: #171411;
  --paper: #f3eee5;
  --white: #fffdf8;
  --brass: #c88b3a;
  --mineral: #234b47;
  --line: rgba(23, 20, 17, .15);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.68;
}

a {
  color: inherit;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 16px clamp(18px, 5vw, 72px);
  background: rgba(243, 238, 229, .94);
}

.legal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.legal-brand img {
  width: 48px;
  height: 48px;
}

.legal-brand strong,
.legal-brand small {
  display: block;
}

.legal-brand strong {
  font-family: var(--serif);
  font-size: 1.25rem;
}

.legal-brand small {
  color: var(--mineral);
  font-family: "Aref Ruqaa", serif;
  font-size: .94rem;
}

.legal-header > a:last-child {
  color: var(--mineral);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.legal-hero {
  padding: clamp(72px, 10vw, 132px) clamp(18px, 10vw, 150px) clamp(54px, 7vw, 90px);
  background: var(--ink);
  color: var(--white);
}

.legal-hero p {
  margin: 0 0 14px;
  color: #e2af65;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.legal-hero h1 {
  max-width: 12ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 500;
  line-height: .96;
}

.legal-hero span {
  display: block;
  max-width: 650px;
  margin-top: 24px;
  color: rgba(255, 253, 248, .68);
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(180px, .3fr) minmax(0, 1fr);
  gap: clamp(42px, 8vw, 120px);
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(68px, 9vw, 120px) clamp(18px, 5vw, 72px);
}

.legal-toc {
  position: sticky;
  top: 28px;
  align-self: start;
  display: grid;
  gap: 9px;
  border-top: 1px solid var(--ink);
  padding-top: 16px;
}

.legal-toc strong {
  margin-bottom: 6px;
  color: var(--brass);
  font-size: .69rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.legal-toc a {
  color: #5f554b;
  font-size: .84rem;
  text-decoration: none;
}

.legal-content {
  max-width: 780px;
}

.legal-content section {
  border-top: 1px solid var(--line);
  padding: 36px 0;
}

.legal-content section:first-child {
  border-top: 0;
  padding-top: 0;
}

.legal-content h2 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 500;
  line-height: 1.06;
}

.legal-content h3 {
  margin: 26px 0 8px;
  font-family: var(--serif);
  font-size: 1.2rem;
}

.legal-content p,
.legal-content li {
  color: #514941;
}

.legal-content a {
  color: var(--mineral);
  font-weight: 700;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 22px;
  font-size: .88rem;
}

.legal-content th,
.legal-content td {
  border-bottom: 1px solid var(--line);
  padding: 13px 10px;
  text-align: left;
  vertical-align: top;
}

.legal-content th {
  color: var(--mineral);
}

.legal-callout {
  border-left: 3px solid var(--brass);
  margin: 28px 0;
  padding: 2px 0 2px 20px;
}

.legal-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 5vw, 72px);
  background: #0d0c0b;
  color: rgba(255, 253, 248, .64);
  font-size: .76rem;
}

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

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

  .legal-toc {
    position: static;
  }

  .legal-content table {
    display: block;
    overflow-x: auto;
  }

  .legal-footer {
    display: grid;
  }
}
