/* Legal document layout from KnownStock, scoped to the cookie policy. */
.cookie-policy {
  --policy-green: #0c5b4f;
  --policy-dark: #073f37;
  --policy-paper: #fffdf8;
  --policy-gutter: clamp(1rem, 3vw, 1.5rem);
  --policy-gap: clamp(1rem, 2vw, 1.5rem);
  background: #f6f4ed;
  color: #14221f;
  font: 400 1rem/1.65 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cookie-policy :is(h1, h2, p, dt, dd, a) { overflow-wrap: anywhere; }
.cookie-policy a { text-decoration: none; }
.policy-container { inline-size: min(calc(100% - 2 * var(--policy-gutter)), 76rem); margin-inline: auto; }
.policy-narrow { max-inline-size: 68rem; }
.policy-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .55rem;
  padding-block-start: 1.3rem;
  color: #53635e;
  font-size: .86rem;
}

.policy-hero { padding-block: clamp(2rem, 4vw, 3.75rem); }
.policy-hero h1 {
  max-inline-size: 24ch;
  font-size: clamp(1.95rem, 3.8vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -.035em;
  hyphens: auto;
}

.policy-eyebrow {
  margin-block-end: 1rem;
  color: var(--policy-green);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.policy-intro {
  max-inline-size: 55rem;
  margin-block-start: 1.75rem;
  color: #40534d;
  font-size: 1.06rem;
}

.policy-section { padding-block: clamp(2.75rem, 5vw, 4.5rem); }
.policy-topics .policy-section:nth-child(even) { background: var(--policy-paper); }
.policy-section h2 {
  max-inline-size: 30ch;
  margin-block-end: 1.25rem;
  font-size: clamp(1.5rem, 2.6vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.025em;
  hyphens: auto;
}

.policy-topics p:not(.policy-eyebrow) {
  max-inline-size: 52rem;
  margin-block: 1em;
  color: #3f514c;
  font-size: 1.08rem;
}

.policy-identity {
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
  border-radius: 1rem;
  background: var(--policy-paper);
}
.policy-identity dl { display: grid; grid-template-columns: minmax(10rem, 1fr) 2fr; gap: .65rem 1rem; }
.policy-identity dt { font-weight: 850; }
.policy-section :is(dd, p) a {
  padding: .05em .25em;
  border-radius: .25em;
  background: #dcebe5;
  color: var(--policy-dark);
  box-decoration-break: clone;
}
.policy-section :is(dd, p) a:hover { background: #c4e0d5; }

.policy-related { background: var(--policy-dark); color: #fff; }
.policy-related .policy-eyebrow { color: #9fd3c7; }
.policy-related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--policy-gap); margin-block-start: 1.75rem; }
.policy-related-grid a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  min-block-size: 5.5rem;
  padding: 1.25rem;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 1rem;
  background: rgb(255 255 255 / 6%);
  color: #fff;
  font-weight: 780;
}
.policy-related-grid a:hover { background: rgb(255 255 255 / 13%); }
.policy-related-grid a:focus-visible { outline-color: #9fd3c7; }

@media (max-width: 1100px) {
  .policy-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .policy-identity dl, .policy-related-grid { grid-template-columns: 1fr; }
  .policy-identity dd + dt { margin-block-start: .45rem; }
  .policy-related-grid a { min-block-size: 4.5rem; }
}
