/* ============================================================
   ZenDailyJapan — Auxiliary Pages Stylesheet
   Shared by: about.html, privacy.html, terms.html, cookies.html
   ============================================================ */

/* Inherits all CSS variables from style.css, but loaded standalone */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green-deep: #2D4A3E;
  --green-mid:  #7B9E87;
  --cream:      #F5F0E8;
  --sand:       #E8DDD0;
  --charcoal:   #2C2C2C;
  --white:      #FFFFFF;
  --radius:     4px;
  --max-w:      1200px;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
}

html {
  background: var(--cream);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--cream);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1;
}

.btn-primary {
  background: var(--green-deep);
  color: var(--cream);
  border-color: var(--green-deep);
}

.btn-primary:hover {
  background: #1e3329;
  border-color: #1e3329;
}

.btn-outline {
  background: transparent;
  color: var(--green-deep);
  border-color: var(--green-deep);
}

.btn-outline:hover {
  background: var(--green-deep);
  color: var(--cream);
}

/* ── HEADER (identical to main site) ── */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--sand);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-wrap img,
.logo-wrap svg {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--green-deep);
  letter-spacing: 0.02em;
  line-height: 1;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--green-deep);
  font-weight: 500;
}

.header-cta svg {
  width: 16px;
  height: 16px;
  stroke: var(--green-deep);
}

/* ── PAGE HERO ── */
.page-hero {
  background: var(--sand);
  padding: 72px 0 60px;
  border-bottom: 1px solid var(--sand);
}

.page-hero .section-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 12px;
  display: block;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600;
  color: var(--green-deep);
  line-height: 1.15;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 17px;
  color: #555;
  line-height: 1.7;
  max-width: 580px;
}

/* ── CONTENT SECTIONS ── */
.page-content {
  padding: 72px 0;
}

.page-content section {
  padding: 0;
  margin-bottom: 64px;
}

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

.page-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 20px;
  line-height: 1.25;
}

.page-content h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 12px;
}

.page-content p {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 16px;
}

.page-content p:last-child {
  margin-bottom: 0;
}

/* About-specific */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 72px;
}

.about-section:nth-child(even) {
  direction: rtl;
}

.about-section:nth-child(even) > * {
  direction: ltr;
}

.about-content-block {
  flex: 1;
}

.about-content-block h2 {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 24px;
  line-height: 1.25;
}

.about-image-block {
  flex: 1;
}

.about-image-block img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Values Grid with SVG Icons */
.values-grid-alt {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 16px;
}

.value-card {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.value-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-icon svg {
  width: 100%;
  height: 100%;
}

.value-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 12px;
}

.value-card p {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Old values grid (fallback) */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 16px;
}

.value-card {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.value-card h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 8px;
}

/* Table of Contents for Policy Pages */
.page-toc {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 56px;
  border-left: 4px solid var(--green-mid);
}

.page-toc h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 16px;
}

.page-toc ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
}

.page-toc li a {
  font-size: 13px;
  color: var(--green-mid);
  text-decoration: underline;
  line-height: 1.6;
}

.page-toc li a:hover {
  color: var(--green-deep);
  font-weight: 500;
}

/* Policy page sections */
.page-content section {
  padding: 32px 0;
  border-bottom: 1px solid var(--sand);
}

.page-content section:first-child {
  padding-top: 0;
}

.page-content section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.page-content section h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 16px;
  margin-top: 12px;
}

.page-content section h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--green-deep);
  margin: 20px 0 8px;
}

.page-content section ul {
  margin-left: 20px;
  margin-bottom: 16px;
}

.page-content section ul li {
  margin-bottom: 8px;
  color: #555;
}

.page-content section strong {
  color: var(--charcoal);
}

/* Old about grid (backward compat) */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-grid.reverse {
  direction: rtl;
}

.about-grid.reverse > * {
  direction: ltr;
}

.about-grid img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Empty content placeholder for legal pages */
.empty-content {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--sand);
  border-radius: var(--radius);
  color: #aaa;
  gap: 12px;
  border: 2px dashed var(--green-mid);
}

.empty-content svg {
  width: 40px;
  height: 40px;
  stroke: var(--green-mid);
  opacity: 0.5;
}

.empty-content p {
  font-size: 14px;
  color: #aaa;
  margin: 0;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--green-deep);
  color: rgba(245,240,232,0.75);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(245,240,232,0.12);
  margin-bottom: 32px;
}

.footer-brand .logo-wrap .brand-name {
  color: var(--cream);
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  margin-top: 16px;
  color: rgba(245,240,232,0.65);
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 13px;
  color: rgba(245,240,232,0.65);
}

.footer-col ul li a:hover {
  color: var(--cream);
}

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

.footer-bottom p {
  font-size: 12px;
  color: rgba(245,240,232,0.45);
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  font-size: 12px;
  color: rgba(245,240,232,0.45);
}

.footer-legal a:hover {
  color: rgba(245,240,232,0.80);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .about-section {
    grid-template-columns: 1fr;
    gap: 32px;
    direction: ltr !important;
  }

  .about-section > * {
    direction: ltr !important;
  }

  .about-image-block img {
    height: 280px;
  }

  .values-grid-alt {
    grid-template-columns: 1fr;
  }

  .page-toc ul {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-grid img {
    height: 240px;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .page-toc {
    padding: 20px;
  }

  .page-toc h3 {
    font-size: 16px;
  }
}
