/* Legal stylesheet for privacy.html and terms-of-service.html */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: #8A6418;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #6C4E10;
}

.legal-header {
  background-color: #23201A;
  border-bottom: 4px solid #B08226;
  padding: 30px 0;
}

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

.legal-header .legal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 14px;
}

.legal-hoop {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 4px solid #B08226;
  box-shadow: inset 0 0 0 3px #23201A, inset 0 0 0 5px #B08226;
  flex: 0 0 auto;
}

.legal-header .legal-brand b {
  color: #EAE4D0;
  font-family: "Trebuchet MS", "Gill Sans", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

.legal-header h1 {
  margin: 0;
  color: #F1EDDE;
  font-family: "Trebuchet MS", "Gill Sans", "Segoe UI", sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  letter-spacing: 0.01em;
}

.legal-header .legal-sub {
  margin: 10px 0 0 0;
  color: #D8D0B8;
  font-size: 0.94rem;
  max-width: 720px;
}

.legal-back {
  display: inline-block;
  margin-top: 14px;
  color: #B08226;
  font-family: "Trebuchet MS", "Gill Sans", "Segoe UI", sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid #B08226;
  padding-bottom: 2px;
}

.legal-back:hover {
  color: #D8A044;
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 44px 24px 56px 24px;
}

.legal-content section {
  background-color: transparent !important;
}

.legal-toc {
  background-color: #EAE4D0;
  border: 3px solid #2E2A21;
  border-radius: 14px;
  padding: 26px 30px;
  margin-bottom: 42px;
}

.legal-toc h2 {
  margin: 0 0 14px 0;
  font-size: 1.14rem;
  font-family: "Trebuchet MS", "Gill Sans", "Segoe UI", sans-serif;
}

.legal-toc ol {
  margin: 0;
  padding-left: 24px;
  columns: 2;
  column-gap: 40px;
}

.legal-toc li {
  margin-bottom: 7px;
  break-inside: avoid;
}

.legal-toc a {
  color: #2E2A21;
  text-decoration: none;
}

.legal-toc a:hover {
  color: #8A6418;
  text-decoration: underline;
}

.legal-content h2 {
  font-family: "Trebuchet MS", "Gill Sans", "Segoe UI", sans-serif;
  font-size: 1.28rem;
  margin: 40px 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #B08226;
  color: #2E2A21;
}

.legal-content h3 {
  font-family: "Trebuchet MS", "Gill Sans", "Segoe UI", sans-serif;
  font-size: 1.06rem;
  margin: 24px 0 8px 0;
  color: #2E2A21;
}

.legal-content p {
  margin: 0 0 1.05em;
}

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

.legal-content li {
  margin-bottom: 8px;
}

.legal-meta {
  background-color: #EAE4D0;
  border-left: 6px solid #B08226;
  padding: 16px 20px;
  margin: 0 0 26px 0;
  font-size: 0.94rem;
}

.legal-note {
  background-color: #EAE4D0;
  border: 2px solid #4A555C;
  border-radius: 12px;
  padding: 18px 22px;
  margin: 24px 0;
}

.legal-footer {
  background-color: #23201A;
  border-top: 4px solid #B08226;
  padding: 30px 0;
}

.legal-footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  color: #D8D0B8;
  font-family: "Trebuchet MS", "Gill Sans", "Segoe UI", sans-serif;
  font-size: 0.88rem;
}

.legal-footer-inner a {
  color: #EAE4D0;
  text-decoration: none;
  border-bottom: 1px solid #B08226;
  margin-right: 18px;
}

.legal-footer-inner a:hover {
  color: #B08226;
}

.legal-footer-inner .legal-copy {
  margin-top: 14px;
  color: #C4BB9F;
}

@media (max-width: 640px) {
  .legal-toc ol {
    columns: 1;
  }
}
