/* Legal and support pages: calm, very readable, same Play look. */

.legal-head {
  position: relative;
  background: var(--violet);
  color: var(--white);
  padding: 22px 0 120px;
  overflow: hidden;
}
.legal-head::before {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  right: -180px;
  top: -260px;
  border-radius: 50%;
  background: var(--violet-top);
}
.legal-head .wrap {
  position: relative;
}
.legal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.legal-nav__right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  opacity: 0.85;
}
.back-link:hover {
  opacity: 1;
}

.legal-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 56px;
}
.legal-hero img {
  width: 96px;
  height: 96px;
  flex: none;
  filter: drop-shadow(0 8px 0 rgba(0, 0, 0, 0.12));
}
.legal-hero h1 {
  font-size: clamp(36px, 6vw, 60px);
}
.legal-hero p {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 700;
}

.legal-body {
  position: relative;
  margin-top: -84px;
  padding-bottom: 96px;
}
.legal-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 24px;
  padding: 20px 14px 20px 20px;
}
.toc h2 {
  margin: 0 0 10px 6px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.toc a {
  display: block;
  padding: 7px 10px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink-soft);
  text-decoration: none;
  transition:
    background 0.15s,
    color 0.15s;
}
.toc a:hover {
  background: var(--lavender);
  color: var(--ink);
}
.toc a[aria-current="true"] {
  background: var(--violet-soft);
  color: var(--violet);
}

.doc {
  padding: clamp(26px, 5vw, 56px);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 600;
  color: #3a2f63;
}
.doc > section + section {
  margin-top: 44px;
}
.doc h2 {
  font-size: clamp(23px, 3vw, 28px);
  color: var(--ink);
  margin-bottom: 14px;
  scroll-margin-top: 24px;
}
.doc h3 {
  font-size: 19px;
  color: var(--ink);
  margin: 24px 0 8px;
  letter-spacing: -0.01em;
}
.doc p + p,
.doc p + ul,
.doc ul + p,
.doc p + ol,
.doc ol + p {
  margin-top: 12px;
}
.doc ul,
.doc ol {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.doc ul li {
  position: relative;
  padding-left: 26px;
}
.doc ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--violet);
  transform: rotate(45deg);
}
.doc ol {
  counter-reset: step;
}
.doc ol li {
  position: relative;
  padding-left: 40px;
  counter-increment: step;
}
.doc ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--violet-soft);
  color: var(--violet);
  font-size: 14px;
  font-weight: 900;
  display: grid;
  place-items: center;
  line-height: 1;
}
.doc strong {
  color: var(--ink);
  font-weight: 900;
}
.doc a {
  color: var(--violet);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.doc .meta {
  font-size: 15px;
  color: var(--ink-soft);
}

/* "In short" summary cards at the top of a document */
.summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 8px 0 48px;
}
.summary div {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 20px;
  background: var(--lavender);
  border: 2px solid var(--line);
}
.summary img {
  width: 44px;
  height: 44px;
  flex: none;
}
.summary strong {
  display: block;
  font-size: 16px;
  line-height: 1.3;
}
.summary span {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.callout {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff8db;
  border: 2px solid #ffe58a;
  color: #5c4500;
  font-size: 16px;
}

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-radius: 22px;
  background: var(--violet);
  color: var(--white);
  box-shadow: 0 6px 0 var(--violet-edge);
}
.contact-card h2 {
  color: var(--white);
  margin: 0;
  font-size: 24px;
}
.contact-card p {
  color: rgba(255, 255, 255, 0.8);
  margin-top: 4px;
  font-size: 15px;
}
.contact-card .btn {
  font-size: 16px;
}

@media (max-width: 920px) {
  .legal-grid {
    grid-template-columns: 1fr;
  }
  .toc {
    display: none;
  }
}
@media (max-width: 640px) {
  .legal-hero {
    gap: 16px;
    margin-top: 40px;
  }
  .legal-hero img {
    width: 68px;
    height: 68px;
  }
  .summary {
    grid-template-columns: 1fr;
  }
  .doc {
    font-size: 16px;
  }
  .back-link span {
    display: none;
  }
}
