/* ============================================================
   css/legal.css — shared stylesheet for privacy.html and
   terms-of-service.html (fine joinery / grain-meets-grain theme)
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

body.legal-page {
  font-family: Georgia, "Times New Roman", "Iowan Old Style", serif;
  font-size: 16px;
  line-height: 1.75;
  margin: 0;
  background-color: #302924;
  color: #F2EAE0;
}

body.legal-page a {
  color: #D9B98A;
  text-decoration: none;
}

body.legal-page a:hover {
  text-decoration: underline;
}

/* ============================================================
   LEGAL HEADER
   ============================================================ */

.legal-header {
  background-color: #1D1815;
  border-bottom: 4px solid #3E6288;
}

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

.legal-header h1 {
  font-family: "Trebuchet MS", "Avenir Next", Verdana, sans-serif;
  color: #F2EAE0;
  font-size: 38px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
  letter-spacing: 0.02em;
}

.legal-header .legal-org {
  margin-top: 10px;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #D9B98A;
}

.legal-header .legal-meta {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #4A4036;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 13px;
  color: #9A8F84;
  letter-spacing: 0.04em;
}

.legal-header .legal-meta a {
  color: #D9B98A;
}

.legal-seam {
  position: relative;
  height: 18px;
  background-color: #3A322C;
  border-bottom: 1px solid #4A4036;
  overflow: hidden;
}

.legal-seam span {
  position: absolute;
  top: 4px;
  width: 6%;
  height: 10px;
  background-color: #3E6288;
  -webkit-clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%);
  clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%);
}

/* ============================================================
   LEGAL CONTENT
   ============================================================ */

.legal-main {
  background-color: #302924;
}

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

.legal-intro {
  padding: 56px 0 20px;
}

.legal-intro p {
  font-size: 19px;
  color: #F2EAE0;
  margin: 0 0 16px;
}

.legal-content {
  padding-bottom: 40px;
}

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

.legal-content section {
  background-color: #3A322C;
  border: 1px solid #3E6288;
  border-left: 5px solid #3E6288;
  border-radius: 2px;
  padding: 28px 30px;
  margin-bottom: 26px;
}

.legal-content h2 {
  font-family: "Trebuchet MS", "Avenir Next", Verdana, sans-serif;
  color: #F2EAE0;
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 16px;
  line-height: 1.3;
}

.legal-content h2 .h2-num {
  color: #3E6288;
  font-family: "Courier New", monospace;
  margin-right: 12px;
}

.legal-content p {
  color: #9A8F84;
  margin: 0 0 14px;
  line-height: 1.8;
}

.legal-content ul {
  list-style: none;
  padding: 0 0 0 6px;
  margin: 0 0 16px;
}

.legal-content ul li {
  position: relative;
  color: #9A8F84;
  padding: 6px 0 6px 24px;
  line-height: 1.8;
}

.legal-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 9px;
  height: 9px;
  background-color: #3E6288;
  -webkit-clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.legal-content strong {
  color: #F2EAE0;
}

.legal-back {
  margin-top: 40px;
  padding: 34px 30px;
  text-align: center;
  background-color: #1D1815;
  border: 1px solid #3E6288;
}

.legal-back h2 {
  font-family: "Trebuchet MS", Verdana, sans-serif;
  color: #F2EAE0;
}

.legal-back p {
  color: #9A8F84;
}

.legal-back a.btn-back {
  display: inline-block;
  margin-top: 10px;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 13px;
  color: #1D1815;
  background-color: #F2EAE0;
  padding: 13px 26px;
  text-decoration: none;
}

.legal-back a.btn-back:hover {
  background-color: #D9B98A;
  color: #1D1815;
}

/* ============================================================
   LEGAL FOOTER
   ============================================================ */

.legal-footer {
  background-color: #1D1815;
  border-top: 1px solid #4A4036;
  margin-top: 20px;
}

.legal-footer-inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 26px 24px;
  text-align: center;
}

.legal-footer-inner p {
  color: #9A8F84;
  font-size: 14px;
  margin: 0 0 6px;
}

.legal-mute {
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9A8F84;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 720px) {
  .legal-header h1 {
    font-size: 30px;
  }
  .legal-content section {
    padding: 22px 20px;
  }
  .legal-intro p {
    font-size: 17px;
  }
}
