/* GRACEYA — Shared legal stylesheet for privacy.html and terms-of-service.html
   LIGHT theme · field-office paper #FBFAF6 on deep shell text #2E2B24 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.legal-page {
  background-color: #FBFAF6;
  color: #2E2B24;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.legal-page body,
.legal-page html {
  background-color: #FBFAF6;
}

.legal-page a {
  color: #6E5A32;
  text-decoration: none;
}
.legal-page a:hover {
  text-decoration: underline;
  color: #B23A48;
}

/* scope isolation: keep the legal background transparent inside sections only.
   Border intentionally keeps header/footer background intact. */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* --- permit clipboard header (legal pages) --- */
.legal-header {
  background-color: #2E2B24;
  border-bottom: 6px solid #B23A48;
  position: relative;
  z-index: 5;
}
.legal-header .inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #FBFAF6;
  font-weight: bold;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.95rem;
}
.shell-glyph {
  width: 18px;
  height: 18px;
  position: relative;
  flex: 0 0 auto;
}
.shell-glyph .shell-body {
  position: absolute;
  left: 2px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #8A6E3C;
}
.shell-glyph .fuse {
  position: absolute;
  right: -1px;
  top: -2px;
  width: 7px;
  height: 7px;
  border-left: 2px solid #B23A48;
  border-top: 2px solid #B23A48;
  transform: rotate(28deg);
  border-radius: 0 50% 0 50%;
}
.legal-nav-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.legal-nav-links a {
  color: #E6E2D6;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
}
.legal-nav-links a:hover {
  color: #8A6E3C;
  text-decoration: none;
}

/* --- title strip contrasting on the dark band --- */
.legal-hero {
  background-color: #2E2B24;
  color: #FBFAF6;
}
.legal-hero .inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px 44px;
}
.legal-hero .kicker {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #8A6E3C;
  margin-bottom: 10px;
  font-weight: bold;
}
.legal-hero h1 {
  font-family: Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.08;
  color: #FBFAF6;
  letter-spacing: -0.01em;
}
.legal-hero .sub {
  margin-top: 14px;
  max-width: 720px;
  color: #E6E2D6;
  font-size: 1rem;
}
.legal-hero .meta-line {
  margin-top: 18px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: #A29B8C;
}

/* --- legal content area --- */
.legal-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px 70px;
  color: #48443A;
}
.legal-content h1,
.legal-content h2,
.legal-content h3 {
  color: #2E2B24;
}
.legal-content .legal-rule h2 {
  color: #6E5A32;
  font-size: 1.55rem;
  margin: 40px 0 12px;
  padding-top: 12px;
  border-top: 1px solid #E6E2D6;
}
.legal-content .legal-rule h2:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}
.legal-content h3 {
  color: #6E5A32;
  font-size: 1.16rem;
  margin: 24px 0 8px;
}
.legal-content p {
  margin-bottom: 14px;
  color: #48443A;
}
.legal-content ul,
.legal-content ol {
  margin: 0 0 16px 24px;
  color: #48443A;
}
.legal-content li {
  margin-bottom: 8px;
}
.legal-content strong,
.legal-content b {
  color: #2E2B24;
}

/* table of contents */
.legal-toc {
  margin: 0 0 10px;
  padding: 22px 24px;
  background-color: #F2EEE3;
  border: 1px solid #E6E2D6;
  border-left: 5px solid #8A6E3C;
  border-radius: 6px;
}
.legal-toc h2 {
  color: #6E5A32;
  font-size: 1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 12px;
  border: none !important;
}
.legal-toc ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 26px;
}
@media (max-width: 640px) {
  .legal-toc ol {
    grid-template-columns: 1fr;
  }
}
.legal-toc li {
  margin: 0;
  font-size: 0.94rem;
}
.legal-toc a {
  color: #6E5A32;
}

/* mini notice / callout box */
.legal-note {
  background: #F2EEE3;
  border: 1px solid #E6E2D6;
  padding: 16px 20px;
  border-radius: 6px;
  border-left: 4px solid #B23A48;
  margin: 18px 0 8px;
  color: #48443A;
}

.inline-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 20px;
  font-size: 0.95rem;
}
.inline-table th {
  background: #F2EEE3;
  color: #2E2B24;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid #E6E2D6;
}
.inline-table td {
  padding: 10px 12px;
  border: 1px solid #E6E2D6;
  color: #48443A;
}
.inline-table tr:nth-child(even) td {
  background: #FBFAF6;
}

/* return home link */
.back-home {
  display: inline-block;
  margin-top: 26px;
  padding: 11px 20px;
  background: #8A6E3C;
  color: #FFFFFF;
  border-radius: 4px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-family: Georgia, serif;
  text-decoration: none;
}
.legal-page .legal-content a.back-home {
  color: #FFFFFF;
}
.legal-page .legal-content a.back-home:hover {
  background: #B23A48;
  color: #FFFFFF;
  text-decoration: none;
}

.legal-rule h2[id],
.legal-content h2, h3 {
  scroll-margin-top: 90px;
}

/* watermark hidden for decorative layout */
.legal-watermark {
  position: absolute;
  visibility: hidden;
}

/* footer content stays layered above any decorative layer */
.legal-footer {
  background-color: #FFFFFF !important;
  border-top: 1px solid #E6E2D6;
  padding: 0 24px 0;
  position: relative;
  z-index: 1;
}
.legal-footer .foot-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 26px 0 44px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.legal-footer .foot-links {
  display: flex;
  justify-content: center;
  gap: 8px 24px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  color: #A29B8C;
}
.legal-footer .foot-sep {
  color: #A29B8C;
}
.legal-footer a {
  color: #6E5A32;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
}
.legal-footer .foot-copy {
  font-size: 0.8rem;
  color: #48443A;
  line-height: 1.8;
  max-width: 760px;
  margin: 0 auto;
}
.legal-footer .foot-copy .company {
  color: #2E2B24;
  font-weight: bold;
}
.legal-footer .foot-contact {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #6E5A32;
}

@media (max-width: 680px) {
  .legal-header .inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .legal-content {
    padding-left: 18px;
    padding-right: 18px;
  }
}
