/* ============================================================
   ALBION HYD HOLDINGS INC. — LEGAL STYLESHEET
   Shared by privacy.html and terms-of-service.html
   Light theme: warm ivory / deep amber-brown / apricot gold
   ============================================================ */

.legal-page {
  background-color: #FBF6EC;
  color: #2B2110;
  margin: 0;
  padding: 0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  color: #2B2110;
  background-color: #FBF6EC;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #8A5A14;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #2B2110;
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  line-height: 1.25;
  font-weight: 700;
  color: #2B2110;
}

p {
  margin-bottom: 18px;
  color: #2B2110;
}

ul, ol {
  margin: 0 0 20px 24px;
  color: #2B2110;
}

li {
  margin-bottom: 8px;
}

strong {
  color: #2B2110;
}

/* ---------- Legal header (must be a div or header, never a section) ---------- */

.legal-header {
  background-color: #E3A82E;
  border-bottom: 4px solid #8A5A14;
  padding: 64px 0 56px;
}

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

.legal-header .legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: #2B2110;
  margin-bottom: 24px;
}

.legal-header .legal-brand:hover {
  color: #FBF6EC;
}

.legal-header .legal-brand .back-arrow {
  font-weight: 700;
}

.legal-header h1 {
  font-size: 42px;
  letter-spacing: -0.02em;
  color: #2B2110;
  margin-bottom: 14px;
}

.legal-header .legal-subtitle {
  font-size: 16px;
  color: #2B2110;
  margin-bottom: 0;
}

.legal-header .legal-subtitle strong {
  color: #2B2110;
}

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

.legal-content {
  padding: 56px 0 72px;
}

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

/* Scope isolation: never paint backgrounds over legal body sections */
.legal-page .legal-content section {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* ---------- Table of contents ---------- */

.toc {
  background-color: #FFFDF6;
  border: 1px solid #E7D8B4;
  border-left: 5px solid #E3A82E;
  border-radius: 10px;
  padding: 26px 28px;
  margin-bottom: 48px;
}

.toc .toc-title {
  font-family: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8A5A14;
  margin-bottom: 16px;
}

.toc ol {
  list-style: none;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}

.toc ol li {
  margin-bottom: 0;
}

.toc ol a {
  color: #2B2110;
  font-size: 14.5px;
  line-height: 1.5;
}

.toc ol a:hover {
  color: #8A5A14;
}

/* ---------- Legal sections ---------- */

.legal-content section {
  margin-bottom: 56px;
}

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

.legal-content h2 {
  font-size: 26px;
  color: #8A5A14;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid #E8C87A;
}

.legal-content h3 {
  font-size: 18px;
  color: #2B2110;
  margin: 26px 0 12px;
}

.legal-content p {
  color: #2B2110;
}

.legal-content ul li {
  color: #2B2110;
}

.legal-content .legal-note {
  background-color: #FFFDF6;
  border: 1px solid #E7D8B4;
  border-radius: 10px;
  padding: 20px 24px;
  margin: 24px 0;
}

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

.legal-content .contact-block {
  margin-top: 12px;
}

.legal-content .contact-block li {
  margin-bottom: 10px;
}

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

.legal-footer {
  background-color: #FBF6EC;
  border-top: 4px solid #E3A82E;
  padding: 44px 0 40px;
}

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

.legal-footer .legal-footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.legal-footer .legal-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-footer .legal-footer-mark {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: #E3A82E;
  border-radius: 3px;
  flex-shrink: 0;
}

.legal-footer .legal-footer-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background-color: #8A5A14;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.legal-footer .brand-word {
  font-family: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.08em;
  color: #2B2110;
}

.legal-footer .legal-footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.legal-footer .legal-footer-links a {
  color: #2B2110;
  font-size: 14.5px;
}

.legal-footer .legal-footer-links a:hover {
  color: #8A5A14;
}

.legal-footer .legal-footer-bottom {
  border-top: 1px solid #E7D8B4;
  padding-top: 20px;
  font-size: 14px;
  color: #5A4A2E;
}

/* ---------- Responsive ---------- */

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

  .legal-header h1 {
    font-size: 32px;
  }

  .legal-content h2 {
    font-size: 22px;
  }
}
