/* Privacy, Terms, Refund, Cancellation and Contact, laid out like the
 * account page: a list of the sections down the side, and the text in a
 * column beside it. Loaded after ui.css on those five pages.
 */

.lg-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) 0 clamp(72px, 9vw, 112px);
}
@media (min-width: 900px) {
  .lg-shell {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 56px;
  }
}

.lg-side {
  align-self: start;
}
@media (min-width: 900px) {
  .lg-side {
    position: sticky;
    top: 92px;
    max-height: calc(100vh - 120px);
    overflow: auto;
  }
}
.lg-side p {
  margin: 0 0 8px 10px;
  font-family: var(--ui-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
}
.lg-side a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--text3);
  font-size: 13.5px;
  line-height: 1.35;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.lg-side a:hover {
  color: var(--text2);
  background: #111;
}
.lg-side a.is-on {
  background: var(--s2);
  color: var(--text);
}
/* On a phone the list is one row of chips above the text that scrolls
   sideways, so a long policy does not open with a wall of links. */
@media (max-width: 899px) {
  .lg-shell {
    gap: 24px;
  }
  .lg-side {
    display: flex;
    gap: 6px;
    margin: 0 -4vw;
    padding: 0 4vw 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4vw, #000 calc(100% - 8vw), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 4vw, #000 calc(100% - 8vw), transparent);
  }
  .lg-side::-webkit-scrollbar {
    display: none;
  }
  .lg-side p {
    display: none;
  }
  .lg-side a {
    flex: 0 0 auto;
    border: 1px solid var(--b1);
    font-size: 12.5px;
    padding: 5px 10px;
    white-space: nowrap;
  }
  /* A page with one or two sections has nothing to jump between. */
  .lg-side:not(:has(a:nth-of-type(3))) {
    display: none;
  }
}

/* A comfortable reading measure, about 75 characters a line. */
:root .lg-main.legal-page {
  max-width: 46rem;
  margin: 0;
  padding: 0;
}
:root .lg-main h1 {
  font-family: var(--ui-sans);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0 0 10px;
  color: var(--text);
}
:root .lg-main h2 {
  font-family: var(--ui-sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 38px 0 10px;
  padding-top: 26px;
  border-top: 1px solid #1c1c1c;
  scroll-margin-top: 92px;
}
:root .lg-main h2:first-of-type {
  margin-top: 26px;
}
:root .lg-main h3 {
  font-family: var(--ui-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 22px 0 8px;
}
:root .lg-main p,
:root .lg-main li {
  color: var(--text2);
  font-size: 15.2px;
  line-height: 1.72;
}
:root .lg-main p {
  margin: 0 0 1rem;
}
:root .lg-main ul,
:root .lg-main ol {
  padding-left: 20px;
  margin: 10px 0 14px;
}
:root .lg-main li {
  margin: 6px 0;
}
:root .lg-main .contact-list {
  padding-left: 1.1rem;
}
:root .lg-main a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--b2);
  text-underline-offset: 3px;
}
:root .lg-main a:hover {
  text-decoration-color: var(--text2);
}
:root .lg-main strong {
  color: var(--text);
  font-weight: 600;
}

/* The effective date, as a quiet chip under the title. */
.lg-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 6px;
  padding: 5px 11px;
  border: 1px solid var(--b1);
  border-radius: 999px;
  font-family: var(--ui-mono);
  font-size: 12px;
  color: var(--text3);
}
.lg-updated::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
}
:root .lg-main .lg-updated strong {
  font-weight: 500;
  color: var(--text3);
}

/* ── What's new (updates.html) ── */
:root .lg-main .rn-lede {
  font-size: 16.5px;
  color: var(--text2);
}
:root .lg-main .rn-meta {
  font-size: 14px;
  color: var(--text3);
}
:root .rn h2 {
  font-size: 22px;
  letter-spacing: -0.025em;
}
:root .lg-main .rn-when {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -2px 0 14px;
  font-family: var(--ui-mono);
  font-size: 12.5px;
  color: var(--text3);
}
.rn-pill {
  padding: 3px 9px;
  border: 1px solid var(--b1);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text3);
}
.rn-pill.soon {
  border-color: var(--ok-bd);
  background: var(--ok-bg);
  color: var(--ok);
}
:root .rn h3 {
  margin-top: 20px;
  font-family: var(--ui-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text3);
}
:root .lg-main .rn li b {
  color: var(--text);
  font-weight: 600;
}
.rn-pro {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border: 1px solid var(--ok-bd);
  border-radius: 5px;
  font-family: var(--ui-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ok);
  vertical-align: 2px;
}

/* ── Report a bug (report.html) ── */
.rb-form {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}
.rb-row {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 640px) {
  .rb-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  }
}
.rb-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.rb-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.rb-opt {
  margin-left: 6px;
  font-weight: 400;
  font-size: 12.5px;
  color: var(--text3);
}
.rb-form textarea,
.rb-form input[type="email"],
.rb-form select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--b1);
  border-radius: 10px;
  background: var(--s1);
  color: var(--text);
  font: 15px/1.5 var(--ui-sans);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.rb-form textarea {
  resize: vertical;
  min-height: 3.5em;
}
.rb-form select {
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M3 4.5l3 3 3-3' fill='none' stroke='%238e8e8e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.rb-form ::placeholder {
  color: #5f5f5f;
}
.rb-form textarea:focus,
.rb-form input[type="email"]:focus,
.rb-form select:focus {
  outline: none;
  border-color: var(--ok-bd);
  box-shadow: 0 0 0 3px var(--ok-bg);
}
.rb-drop {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px dashed var(--b2);
  border-radius: 10px;
  background: var(--s1);
  color: var(--text3);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.rb-drop:hover,
.rb-drop.over {
  border-color: var(--ok-bd);
  background: var(--s2);
}
.rb-drop.has {
  border-style: solid;
  color: var(--text);
}
.rb-drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.rb-drop span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rb-clear {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  padding: 4px 10px;
  border: 1px solid var(--b1);
  border-radius: 7px;
  background: var(--s2);
  color: var(--text2);
  font: 13px var(--ui-sans);
  cursor: pointer;
}
.rb-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
:root .lg-main .rb-auto {
  margin: -4px 0 0;
  font-family: var(--ui-mono);
  font-size: 12px;
  color: var(--text3);
}
.rb-privacy {
  margin: 16px 0 20px;
  padding: 14px 16px;
  border: 1px solid var(--b1);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.55;
}
.rb-privacy p { margin: 0; }
.rb-privacy p + p { margin-top: 10px; }
.rb-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.rb-actions .btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}
:root .lg-main .rb-status {
  margin: 0;
  font-size: 14px;
  color: var(--text3);
}
:root .lg-main .rb-status.err {
  color: var(--err);
}
.rb-done {
  margin-top: 26px;
  padding: 22px 24px;
  border: 1px solid var(--ok-bd);
  border-radius: 14px;
  background: var(--ok-bg);
}
:root .lg-main .rb-done p {
  margin: 0 0 6px;
}
:root .lg-main .rb-done p:last-child {
  margin: 10px 0 0;
}
:root .lg-main .rb-done-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}
/* The form page has nothing to jump between: one centred column. */
@media (min-width: 900px) {
  .lg-shell.rb-shell {
    grid-template-columns: minmax(0, 1fr);
  }
}
:root .rb-shell .lg-main.legal-page {
  width: 100%;
  margin: 0 auto;
  max-width: 40rem;
}
.rb-form[hidden],
.rb-done[hidden] {
  display: none;
}
