/* Legal documents: privacy, E911 (inside the site layout) and the
   msa-layout contracts (MSA, voice supplement, AUP, EULA). */
:root {
  --ink: #16202e;
  --signal: #dc3545;
  --rule: #dfe3e8;
  --panel: #f4f6f8;
  --text: #4a4f57;
}

.doc {
  max-width: 46rem;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.65;
}

.doc h1 {
  color: var(--ink);
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.doc h2,
.doc h3 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.3;
}

.doc h2 {
  font-size: 1.4rem;
  margin: 2.5rem 0 .75rem;
}

/* Numbered sections */
.doc h3 {
  font-size: 1.15rem;
  margin: 2.25rem 0 .6rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.doc h4,
.doc h5,
.doc h6 {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 1.5rem 0 .4rem;
}

.doc h5,
.doc h6 {
  font-weight: 600;
}

.doc p {
  margin: 0 0 1rem;
}

.doc ol,
.doc ul {
  padding-left: 1.5rem;
  margin: 0 0 1rem;
}

.doc li + li {
  margin-top: .4rem;
}

.doc li > ol,
.doc li > ul {
  margin-top: .4rem;
}

.doc a {
  color: var(--ink);
  text-decoration-color: var(--signal);
  text-underline-offset: .15em;
}

.doc a:hover {
  color: var(--signal);
}

.doc table {
  border-collapse: collapse;
  margin: 0 0 1rem;
}

.doc th,
.doc td {
  border: 1px solid var(--rule);
  padding: .4rem .6rem;
  text-align: left;
  vertical-align: top;
}

/* Legal document switcher */
.doc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.25rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  font-size: .9rem;
}

.doc-nav a {
  color: var(--text);
  text-decoration: none;
}

.doc-nav a:hover,
.doc-nav a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
}

.doc-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

/* Standalone contract layout (_default/msa.html) */
.doc-page {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.doc-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--rule);
}

.doc-header .doc-nav {
  margin: 0;
  flex: 1 1 auto;
}

.doc-logo {
  display: block;
  height: 40px;
  width: auto;
}

.doc-print {
  font: inherit;
  font-size: .9rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--ink);
  border-radius: .375rem;
  padding: .35rem .9rem;
  cursor: pointer;
}

.doc-print:hover {
  background: var(--panel);
}

.doc-print:focus-visible,
.doc-nav a:focus-visible,
.doc-header > a:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 2px;
}

.doc-main {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 3rem;
}

.doc-footer {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
  border-top: 1px solid var(--rule);
  font-size: .85rem;
}

.doc-footer a {
  color: var(--text);
}

@media print {
  .doc-header .doc-nav,
  .doc-print,
  .doc-nav {
    display: none;
  }

  .doc-page {
    font-size: 10pt;
  }

  .doc-header,
  .doc-main,
  .doc-footer {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }

  .doc-main {
    padding-top: 1rem;
  }

  .doc {
    max-width: none;
    font-size: 10pt;
    line-height: 1.45;
    color: #000;
  }

  .doc h1 {
    font-size: 16pt;
  }

  .doc h2 {
    font-size: 13pt;
  }

  .doc h3 {
    font-size: 11pt;
    border-top: 0;
    padding-top: 0;
    margin-top: 1.25rem;
  }

  .doc h1,
  .doc h2,
  .doc h3,
  .doc h4,
  .doc h5,
  .doc h6 {
    color: #000;
    break-after: avoid;
  }

  .doc a {
    color: #000;
    text-decoration: none;
  }

  @page {
    margin: 0.6in;
  }
}
