/* Styles for the static policy pages (generated by scripts/build-pages.mjs). */
:root {
  color-scheme: dark;
  --ink: #0b0406;
  --ink-2: #14070a;
  --gold: #d6a94e;
  --gold-hi: #f6dc9c;
  --pearl: #f7eedf;
  --text: #f3e6d3;
  --text-dim: rgba(243, 230, 211, 0.72);
  --line: rgba(246, 220, 156, 0.16);
  --gold-grad: linear-gradient(115deg, #8f6220 0%, #d6a94e 22%, #fff1c6 40%, #d6a94e 58%, #a8762b 78%, #f6dc9c 100%);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Jost', system-ui, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background:
    radial-gradient(60vmax 50vmax at 90% -10%, rgba(110, 19, 29, 0.55), transparent 60%),
    radial-gradient(50vmax 50vmax at -10% 40%, rgba(74, 12, 19, 0.5), transparent 60%),
    var(--ink);
  background-attachment: fixed;
}

a {
  color: var(--gold-hi);
  text-underline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(11, 4, 6, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.top__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  border-radius: 10px;
}

.brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand b {
  font-family: 'Rozha One', serif;
  font-weight: 400;
  font-size: 20px;
  color: var(--gold-hi);
}

.brand small {
  font-size: 9px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.back {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-dim);
}

.back:hover {
  color: var(--gold-hi);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 56px;
  padding-top: 56px;
  padding-bottom: 80px;
}

.doc {
  min-width: 0;
}

.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

h1 {
  margin: 10px 0 6px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1.05;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  margin: 44px 0 10px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 28px;
  line-height: 1.2;
  color: var(--pearl);
}

h3 {
  margin: 22px 0 6px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--gold-hi);
}

.updated {
  margin: 0 0 28px;
  font-size: 13px;
  color: var(--text-dim);
}

.lead {
  font-size: 18px;
  color: var(--pearl);
}

p,
li {
  color: var(--text-dim);
}

strong {
  color: var(--text);
  font-weight: 500;
}

ul,
ol {
  padding-left: 22px;
}

li + li {
  margin-top: 6px;
}

.kv {
  list-style: none;
  padding: 18px 22px;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(140deg, rgba(255, 236, 214, 0.07), rgba(255, 236, 214, 0.02));
}

.kv li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  overflow-wrap: anywhere;
}

.kv li span {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 4px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: var(--gold-grad);
}

.btn--ghost {
  color: var(--text);
  background: rgba(255, 236, 214, 0.06);
  border: 1px solid var(--line);
}

/* ---------- call-back request form (/contact) ---------- */
.cbx {
  scroll-margin-top: 90px;
  margin: 34px 0 10px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(140deg, rgba(255, 236, 214, 0.08), rgba(255, 236, 214, 0.02));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}

.cbx h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 38px);
}

.cbx__sub {
  margin: 4px 0 22px;
  color: var(--pearl);
}

.cbx__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cbx__form[hidden],
.cbx__done[hidden] {
  display: none;
}

.cbx__field {
  position: relative;
  display: block;
}

.cbx__field input,
.cbx__field textarea {
  width: 100%;
  padding: 24px 18px 10px;
  border-radius: 14px;
  border: 1px solid rgba(246, 220, 156, 0.22);
  background: rgba(11, 4, 6, 0.4);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  outline: none;
  resize: vertical;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.cbx__field input:focus,
.cbx__field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(214, 169, 78, 0.14);
}

.cbx__field > span {
  position: absolute;
  left: 19px;
  top: 17px;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: rgba(243, 230, 211, 0.55);
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.25s, color 0.25s;
}

.cbx__field input:focus + span,
.cbx__field input:not(:placeholder-shown) + span,
.cbx__field textarea:focus + span,
.cbx__field textarea:not(:placeholder-shown) + span {
  transform: translateY(-10px) scale(0.72);
  color: var(--gold);
}

.cbx i {
  font-style: normal;
  color: #ff5470;
  margin-left: 2px;
}

.cbx__err {
  display: block;
  font-size: 12px;
  color: #ff6b84;
}

.cbx__err:empty {
  display: none;
}

.cbx__field .cbx__err {
  margin: 6px 0 0 4px;
}

.cbx__field.is-err input,
.cbx__field.is-err textarea,
.cbx__consent.is-err {
  border-color: rgba(255, 84, 112, 0.75);
}

/* consent checkbox — the key compliance element */
.cbx__consent {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(246, 220, 156, 0.18);
  border-radius: 14px;
  background: rgba(11, 4, 6, 0.3);
  cursor: pointer;
}

.cbx__consent input {
  position: absolute;
  opacity: 0;
  width: 24px;
  height: 24px;
  margin: 0;
}

.cbx__box {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1.5px solid var(--gold);
  background: rgba(11, 4, 6, 0.5);
  display: grid;
  place-items: center;
}

.cbx__box::after {
  content: '';
  width: 6px;
  height: 11px;
  margin-top: -3px;
  border: solid var(--ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.2s;
}

.cbx__consent input:checked + .cbx__box {
  background: var(--gold-grad);
  border-color: transparent;
}

.cbx__consent input:checked + .cbx__box::after {
  transform: rotate(45deg) scale(1);
}

.cbx__consent input:focus-visible + .cbx__box {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
}

.cbx__consent-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}

.cbx__consent-text .cbx__err {
  margin-top: 6px;
}

.cbx__submit {
  align-self: flex-start;
  border: 0;
  cursor: pointer;
  padding: 0 34px;
  font-family: inherit;
}

.cbx__note {
  margin: 0;
  font-size: 13px;
}

.cbx__done {
  text-align: center;
  padding: 20px 0 6px;
  outline: none;
}

.cbx__done h3 {
  margin: 0 0 6px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--pearl);
}

.cbx__done .actions {
  justify-content: center;
}

.cbx__done button {
  cursor: pointer;
  font-family: inherit;
}

@media (max-width: 560px) {
  .cbx__submit {
    align-self: stretch;
    justify-content: center;
  }
}

.side nav {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 236, 214, 0.04);
}

.side a {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  text-decoration: none;
  color: var(--text-dim);
}

.side a:hover,
.side a[aria-current='page'] {
  color: var(--ink);
  background: var(--gold-grad);
}

.foot {
  border-top: 1px solid var(--line);
}

.foot__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 24px;
  padding-bottom: 32px;
  font-size: 13px;
  color: var(--text-dim);
}

@media (max-width: 860px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 36px;
  }

  .side {
    order: 2;
  }

  .kv li {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
