﻿/* terms.css */

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

:root {
  --cinna:       #C8622A;
  --cinna-light: #E8874E;
  --cinna-dark:  #8B3D14;
  --cream:       #FAF6F0;
  --warm-white:  #FFF9F4;
  --bark:        #3D2010;
  --spice:       #6B3520;
  --muted:       #9E7B62;
  --border:      #E8D5C4;
}

html, body {
  min-height: 100%;
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text-primary);
}

/* ── Page shell ─────────────────────────────── */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Top bar ────────────────────────────────── */
.topnav {
  background: var(--bark);
  padding: 0 48px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}

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

.logo-icon {
  width: 34px; height: 34px;
  background: var(--cinna);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 14px; color: #fff; font-weight: 700;
  flex-shrink: 0;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 18px; color: #fff;
}
.logo-text em { color: var(--cinna-light); font-style: italic; }

.back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.15s;
}
.back-btn:hover { color: #fff; }
.back-btn svg { width: 14px; height: 14px; }

/* ── Hero strip ─────────────────────────────── */
.hero {
  background: var(--bark);
  padding: 56px 48px 64px;
  position: relative;
  overflow: hidden;
  animation: fadeDown 0.7s cubic-bezier(0.22,1,0.36,1) both;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 100% 100%, rgba(200,98,42,0.3) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 0%   0%,   rgba(107,53,32,0.4) 0%, transparent 55%);
  pointer-events: none;
}

/* Decorative ring */
.hero::after {
  content: '';
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  border: 1px solid rgba(200,98,42,0.15);
  right: -100px; bottom: -140px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cinna-light);
  margin-bottom: 14px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 16px;
}
.hero-title em { color: var(--cinna-light); font-style: italic; }

.hero-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.01em;
}

/* ── Content area ───────────────────────────── */
.content {
  flex: 1;
  padding: 64px 48px 80px;
  animation: fadeUp 0.6s 0.15s cubic-bezier(0.22,1,0.36,1) both;
}

.content-inner {
  max-width: 760px;
  margin: 0 auto;
}

/* ── Term cards ─────────────────────────────── */
.terms-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.term-card {
  background: var(--warm-white);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 28px 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  animation: fadeUp 0.55s cubic-bezier(0.22,1,0.36,1) both;
}

.term-card:nth-child(1) { animation-delay: 0.20s; }
.term-card:nth-child(2) { animation-delay: 0.30s; }
.term-card:nth-child(3) { animation-delay: 0.40s; }
.term-card:nth-child(4) { animation-delay: 0.50s; }
.term-card:nth-child(5) { animation-delay: 0.60s; }

.term-number {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-style: italic;
  color: var(--border);
  line-height: 1;
  flex-shrink: 0;
  width: 36px;
  text-align: right;
  margin-top: 2px;
  user-select: none;
}

.term-body { flex: 1; }

.term-heading {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.term-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

/* ── Footer note ────────────────────────────── */
.terms-footer-note {
  margin-top: 40px;
  padding: 20px 24px;
  background: rgba(200,98,42,0.06);
  border: 1.5px solid rgba(200,98,42,0.15);
  border-radius: 12px;
  font-size: 13px;
  color: var(--spice);
  line-height: 1.7;
  animation: fadeUp 0.55s 0.65s cubic-bezier(0.22,1,0.36,1) both;
}

.terms-footer-note a {
  color: var(--cinna);
  text-decoration: none;
  border-bottom: 1px solid rgba(200,98,42,0.3);
}
.terms-footer-note a:hover { border-color: var(--cinna); }

/* ── Page footer ────────────────────────────── */
.page-footer {
  border-top: 1px solid var(--border);
  padding: 24px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  color: var(--muted);
}
.footer-logo em { color: var(--cinna); font-style: italic; }

.footer-copy {
  font-size: 12px;
  color: var(--border);
}

/* ── Animations ─────────────────────────────── */
@keyframes fadeUp {
  from { transform: translateY(18px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes fadeDown {
  from { transform: translateY(-12px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 640px) {
  .topnav    { padding: 0 20px; }
  .hero      { padding: 40px 20px 48px; }
  .hero-title { font-size: 30px; }
  .content   { padding: 40px 20px 60px; }
  .term-card { padding: 22px 20px; gap: 16px; }
  .term-number { font-size: 22px; width: 28px; }
  .page-footer { padding: 20px; }
}

