/* =====================================================================
   Eds Technology Inc. — shared legal stylesheet
   Used by privacy.html and terms-of-service.html only.
   ===================================================================== */

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-size: 16px;
  font-family: Georgia, "Times New Roman", serif;
  background-color: #F6E8E0;
  color: #362036;
  line-height: 1.72;
  overflow-x: hidden;
}

p { margin: 0 0 1.1em; }

a { color: #C4510F; }

/* ---------- legal header ---------- */

.legal-header {
  background-color: #362036;
  border-bottom: 5px solid #FC823E;
}

.legal-headrow {
  max-width: 1028px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #F6E8E0;
  font-weight: 700;
  font-size: 1.1rem;
}

.legal-brand .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ECB25A;
  box-shadow: 0 0 0 3px #4C4E9E;
  display: inline-block;
}

.legal-home {
  margin-left: auto;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: #362036;
  text-decoration: none;
  background-color: #FC823E;
  padding: 9px 15px;
}

.legal-home:hover { background-color: #ECB25A; }

/* ---------- legal title block ---------- */

.legal-title {
  background-color: #F0DCD0;
  border-bottom: 2px solid #362036;
  padding: 46px 24px 38px;
}

.legal-title-inner {
  max-width: 1028px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-kicker {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: #7A4A28;
  margin: 0 0 12px;
}

.legal-title h1 {
  font-size: 2.7rem;
  line-height: 1.1;
  margin: 0 0 14px;
  color: #362036;
  letter-spacing: -0.01em;
}

.legal-lede {
  font-size: 1.08rem;
  max-width: 44em;
  margin: 0;
  color: #362036;
}

.legal-meta {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: #362036;
  margin: 18px 0 0;
}

/* ---------- body grid ---------- */

.legal-layout {
  max-width: 980px;
  margin: 0 auto;
  padding: 46px 24px 66px;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 48px;
  align-items: start;
}

/* ---------- table of contents ---------- */

.legal-toc {
  background-color: #F0DCD0;
  border: 2px solid #362036;
  padding: 22px 20px;
  position: sticky;
  top: 20px;
}

.legal-toc h2 {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7A4A28;
  margin: 0 0 14px;
  font-weight: 700;
}

.legal-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
}

.legal-toc li {
  counter-increment: toc;
  border-bottom: 1px solid #D8C4B4;
}

.legal-toc li:last-child { border-bottom: 0; }

.legal-toc a {
  display: block;
  padding: 8px 0 8px 24px;
  font-size: 0.86rem;
  line-height: 1.35;
  color: #362036;
  text-decoration: none;
  position: relative;
}

.legal-toc a::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 8px;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: #C4510F;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
  text-decoration: underline;
  text-decoration-color: #FC823E;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  outline: none;
}

/* ---------- content ---------- */

.legal-content {
  min-width: 0;
}

.legal-content section {
  background-color: transparent !important;
  border-bottom: 1px solid #D8C4B4;
  padding: 0 0 26px;
  margin-bottom: 30px;
}

.legal-content section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-content h2 {
  font-size: 1.5rem;
  line-height: 1.22;
  margin: 0 0 14px;
  color: #362036;
  scroll-margin-top: 20px;
}

.legal-content h3 {
  font-size: 1.08rem;
  margin: 22px 0 8px;
  color: #362036;
}

.legal-content p {
  color: #362036;
  margin-bottom: 1.05em;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 1.1em;
  padding-left: 22px;
}

.legal-content li {
  margin-bottom: 0.55em;
  color: #362036;
}

.legal-content li::marker { color: #C4510F; }

.legal-content a {
  color: #C4510F;
  text-decoration: underline;
  text-decoration-color: #FC823E;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  font-weight: 700;
}

.legal-content a:hover { text-decoration-color: #4C4E9E; }

.legal-note {
  background-color: #F0DCD0;
  border-left: 6px solid #FC823E;
  padding: 16px 18px;
  margin: 0 0 1.2em;
  font-size: 0.97rem;
}

.legal-note p:last-child { margin-bottom: 0; }

.legal-personal {
  margin-top: 26px;
  font-size: 0.95rem;
  border-top: 2px solid #362036;
  padding-top: 14px;
}

/* ---------- footer ---------- */

.legal-footer {
  background-color: #F6E8E0;
  border-top: 3px solid #362036;
  padding: 30px 24px 38px;
}

.legal-footinner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.legal-footnav {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
}

.legal-footnav a {
  color: #362036;
  text-decoration: none;
  padding: 2px 4px;
}

.legal-footnav a:hover,
.legal-footnav a:focus-visible {
  text-decoration: underline;
  text-decoration-color: #FC823E;
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
  outline: none;
}

.legal-footnav .mid { color: #C4510F; padding: 0 10px; }

.legal-footmeta {
  font-size: 0.92rem;
  color: #362036;
  margin: 0 0 6px;
}

.legal-footmeta a { color: #362036; text-decoration: underline; text-decoration-color: #ECB25A; text-decoration-thickness: 2px; }

/* ---------- responsive ---------- */

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

  .legal-toc {
    position: static;
  }

  .legal-toc ol {
    columns: 2;
    column-gap: 18px;
  }

  .legal-toc li { break-inside: avoid; }

  .legal-title h1 { font-size: 2.15rem; }
  .legal-title-inner { padding: 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .legal-content h2 { font-size: 1.28rem; }
  .legal-title h1 { font-size: 1.85rem; }
  .legal-toc ol { columns: 1; }
  .legal-home { margin-left: 0; }
}
