/* ============================================================
   Home Crafts Gallery — Legal / Info pages stylesheet
   Theme-aware. Inherits CSS variables from style.css.
   ============================================================ */

/* ---------- BASE ---------- */
.legal-body {
  min-height: 100vh;
}

.legal-hero {
  padding: 70px 24px 50px;
  text-align: center;
  background: linear-gradient(180deg,
              var(--bg-soft, #faf6ed) 0%,
              var(--bg, #fff) 100%);
  border-bottom: 1px solid var(--border, #e8dfc9);
}

.legal-hero-title {
  font-family: var(--font-display, 'Playfair Display', Georgia, serif);
  font-size: clamp(28px, 5vw, 48px);
  margin: 0 0 12px;
  color: var(--text, #2a1f10);
  letter-spacing: -0.5px;
}

.legal-hero-sub {
  font-size: clamp(15px, 2.2vw, 18px);
  color: var(--text-soft, #6b5b3f);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.55;
}

.legal-main {
  max-width: 880px;
  margin: 0 auto;
  padding: 50px 24px 80px;
}

/* ---------- CONTENT ---------- */
.legal-content {
  background: var(--bg, #fff);
  padding: 50px 50px;
  border-radius: 14px;
  border: 1px solid var(--border, #e8dfc9);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  line-height: 1.7;
  color: var(--text, #2a1f10);
}

.legal-effective {
  font-size: 13px;
  color: var(--text-soft, #6b5b3f);
  background: var(--bg-soft, #faf6ed);
  padding: 12px 16px;
  border-radius: 8px;
  border-left: 3px solid var(--accent, #8b6321);
  margin-bottom: 35px;
}

.legal-section {
  margin-bottom: 38px;
}

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

.legal-section h2 {
  font-family: var(--font-display, 'Playfair Display', Georgia, serif);
  font-size: 24px;
  color: var(--text, #2a1f10);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border, #e8dfc9);
}

.legal-section h3 {
  font-size: 17px;
  color: var(--accent, #8b6321);
  margin: 22px 0 10px;
  font-weight: 700;
}

.legal-section p {
  margin: 0 0 14px;
  font-size: 15.5px;
}

.legal-section ul,
.legal-section ol {
  padding-left: 24px;
  margin: 12px 0 18px;
}

.legal-section li {
  margin-bottom: 8px;
  font-size: 15px;
}

.legal-section a {
  color: var(--accent, #8b6321);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-section a:hover {
  color: var(--text, #2a1f10);
}

.legal-section strong {
  color: var(--text, #2a1f10);
  font-weight: 700;
}

/* ---------- CONTACT CARD INSIDE LEGAL ---------- */
.legal-contact-card {
  background: var(--bg-soft, #faf6ed);
  padding: 20px 24px;
  border-radius: 10px;
  border: 1px solid var(--border, #e8dfc9);
  margin-top: 16px;
}

.legal-contact-card p {
  margin: 4px 0;
  font-size: 14px;
}

/* ---------- LEGAL TABLE ---------- */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--border, #e8dfc9);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--bg-soft, #faf6ed);
  color: var(--text, #2a1f10);
  font-weight: 700;
}

.legal-table code {
  background: #f5efdf;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: #8b6321;
}

/* ---------- ABOUT PAGE EXTRAS ---------- */
.about-lead {
  font-size: 17px !important;
  line-height: 1.7;
  color: var(--text, #2a1f10);
  font-style: italic;
  padding-left: 18px;
  border-left: 3px solid var(--accent, #8b6321);
}

.about-steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

.about-steps li {
  counter-increment: step;
  padding: 12px 0 12px 50px;
  position: relative;
  border-bottom: 1px dashed var(--border, #e8dfc9);
}

.about-steps li:last-child {
  border-bottom: none;
}

.about-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 12px;
  width: 34px;
  height: 34px;
  background: var(--accent, #8b6321);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}

/* ---------- CONTACT PAGE ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 30px 0;
}

.contact-card {
  background: var(--bg-soft, #faf6ed);
  border: 1px solid var(--border, #e8dfc9);
  border-radius: 12px;
  padding: 28px 28px;
}

.contact-card h3 {
  font-family: var(--font-display, 'Playfair Display', Georgia, serif);
  font-size: 22px;
  margin: 0 0 20px;
  color: var(--text, #2a1f10);
}

.contact-row {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--border, #e8dfc9);
  font-size: 14px;
}

.contact-row:last-child {
  border-bottom: none;
}

.contact-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}

.contact-row strong {
  color: var(--text, #2a1f10);
}

.contact-row a {
  color: var(--accent, #8b6321);
  text-decoration: none;
  font-weight: 500;
}

.contact-row a:hover {
  text-decoration: underline;
}

.contact-note {
  font-size: 12px;
  color: var(--text-soft, #6b5b3f);
  margin-top: 4px;
}

/* ---------- FORMS (legal pages) ---------- */
.contact-form .form-field {
  margin-bottom: 16px;
}

.contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #2a1f10);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border, #d4c4a3);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--text, #2a1f10);
  transition: border-color 0.15s ease;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent, #8b6321);
  box-shadow: 0 0 0 3px rgba(139, 99, 33, 0.12);
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.form-consent {
  background: #fff;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--border, #d4c4a3);
  margin: 14px 0 20px;
}

.consent-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-soft, #6b5b3f);
  cursor: pointer;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 400 !important;
}

.consent-label input[type="checkbox"] {
  width: auto;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}

.consent-label a {
  color: var(--accent, #8b6321);
}

.form-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  display: none;
}

.form-status.success {
  display: block;
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.form-status.error {
  display: block;
  background: #fdecea;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

/* ---------- STATUS CARDS (confirm.php / unsubscribe.php) ---------- */
.status-card {
  text-align: center;
  padding: 50px 32px;
  border-radius: 14px;
  margin: 30px 0;
}

.status-card.success-card {
  background: linear-gradient(180deg, #e8f5e9 0%, #f1f8e9 100%);
  border: 1px solid #a5d6a7;
  color: #1b5e20;
}

.status-card.info-card {
  background: linear-gradient(180deg, #e3f2fd 0%, #f3f9ff 100%);
  border: 1px solid #90caf9;
  color: #0d47a1;
}

.status-card.error-card {
  background: linear-gradient(180deg, #fdecea 0%, #fef5f4 100%);
  border: 1px solid #ef9a9a;
  color: #b71c1c;
}

.status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
}

.success-card .status-icon { background: #2e7d32; }
.info-card    .status-icon { background: #1565c0; }
.error-card   .status-icon { background: #c62828; }

.status-card h2 {
  font-family: var(--font-display, 'Playfair Display', Georgia, serif);
  font-size: 26px;
  margin: 0 0 16px;
}

.status-card p {
  font-size: 15px;
  line-height: 1.7;
  margin: 8px 0;
}

.status-card .btn {
  background: var(--accent, #8b6321);
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
}

.status-card .btn:hover {
  background: var(--text, #2a1f10);
}

/* ---------- NEWSLETTER (used on index.php) ---------- */
.newsletter-section {
  background: linear-gradient(135deg,
              var(--bg-soft, #faf6ed) 0%,
              #f0e8d0 100%);
  padding: 60px 24px;
  text-align: center;
  border-top: 1px solid var(--border, #e8dfc9);
  border-bottom: 1px solid var(--border, #e8dfc9);
}

.newsletter-inner {
  max-width: 560px;
  margin: 0 auto;
}

.newsletter-title {
  font-family: var(--font-display, 'Playfair Display', Georgia, serif);
  font-size: clamp(26px, 4vw, 36px);
  color: var(--text, #2a1f10);
  margin: 0 0 12px;
}

.newsletter-sub {
  font-size: 15px;
  color: var(--text-soft, #6b5b3f);
  margin: 0 0 28px;
  line-height: 1.6;
}

.newsletter-form {
  background: #fff;
  padding: 28px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border, #e8dfc9);
}

.newsletter-form .form-field {
  margin-bottom: 14px;
}

.newsletter-form label {
  display: block;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--text, #2a1f10);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.newsletter-form input[type="text"],
.newsletter-form input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border, #d4c4a3);
  border-radius: 8px;
  font-size: 15px;
  background: #fff;
  color: var(--text, #2a1f10);
  box-sizing: border-box;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--accent, #8b6321);
  box-shadow: 0 0 0 3px rgba(139, 99, 33, 0.12);
}

.newsletter-form .form-consent {
  margin: 14px 0 18px;
  background: var(--bg-soft, #faf6ed);
}

.newsletter-btn {
  width: 100%;
  padding: 14px;
  background: var(--accent, #8b6321);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background 0.15s ease;
}

.newsletter-btn:hover {
  background: var(--text, #2a1f10);
}

.newsletter-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.newsletter-footnote {
  font-size: 11px;
  color: var(--text-soft, #6b5b3f);
  margin-top: 14px;
  line-height: 1.5;
}

/* ---------- SITE FOOTER UPDATES ---------- */
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 24px 30px;
}

.site-footer h4 {
  font-family: var(--font-display, 'Playfair Display', Georgia, serif);
  font-size: 18px;
  margin: 0 0 14px;
}

.site-footer p {
  font-size: 13px;
  margin: 6px 0;
  line-height: 1.5;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer .footer-bottom {
  text-align: center;
  padding: 18px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  opacity: 0.7;
}

/* ---------- MOBILE ---------- */
@media (max-width: 768px) {
  .legal-content { padding: 32px 22px; }
  .legal-section h2 { font-size: 21px; }
  .contact-grid { grid-template-columns: 1fr; }
  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 30px 18px 20px;
  }
}

@media (max-width: 480px) {
  .legal-hero { padding: 50px 18px 36px; }
  .legal-content { padding: 24px 16px; }
  .site-footer .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- DARK THEME OVERRIDES ---------- */
body.theme-dark .legal-content {
  background: #1a1f2e;
  border-color: #2d3548;
  color: #e0e2e9;
}

body.theme-dark .legal-section h2 {
  color: #e0e2e9;
  border-bottom-color: #2d3548;
}

body.theme-dark .legal-section strong { color: #fff; }

body.theme-dark .legal-effective,
body.theme-dark .legal-contact-card,
body.theme-dark .contact-card,
body.theme-dark .form-consent {
  background: #0f1422;
  border-color: #2d3548;
}

body.theme-dark .contact-form input,
body.theme-dark .contact-form select,
body.theme-dark .contact-form textarea {
  background: #0f1422;
  border-color: #2d3548;
  color: #e0e2e9;
}

body.theme-dark .legal-table th { background: #0f1422; color: #e0e2e9; }
body.theme-dark .legal-table code { background: #2d3548; color: #ffc380; }

body.theme-dark .newsletter-section {
  background: linear-gradient(135deg, #1a1f2e 0%, #0f1422 100%);
  border-color: #2d3548;
}

body.theme-dark .newsletter-form {
  background: #1a1f2e;
  border-color: #2d3548;
}

body.theme-dark .newsletter-form input {
  background: #0f1422;
  border-color: #2d3548;
  color: #e0e2e9;
}
