/* Fillorin app-site template — shared across index.html and privacy_policy.html.
   Extracted from the Fillorin/StudyJapanese web design system. Reuse for future apps:
   swap --accent, the nav/footer app name+icon, and page copy; everything else carries over. */

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

:root {
  --ink: #1a1410;
  --paper: #faf7f2;
  --accent: #6c4fd6;
  --accent-light: #8a6ff0;
  --muted: #7a6f65;
  --border: #e0d9cf;
  --surface: #ffffff;
  --font-sans: 'DM Sans', sans-serif;
  --font-serif: 'Shippori Mincho', serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.75;
  overflow-x: hidden;
  font-size: 1.05rem;
}

h1, h2, h3, h4, .nav-title { font-family: var(--font-serif); }

h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.2rem;
}

p, li { font-size: 1.05rem; line-height: 1.75; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 3rem; height: 72px;
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }

.nav-app-icon { width: 36px; height: 36px; border-radius: 9px; display: block; flex-shrink: 0; }

.nav-title { font-size: 1.2rem; font-weight: 600; letter-spacing: 0.02em; color: #fff; }

.nav-links { display: flex; gap: 2.5rem; list-style: none; align-items: center; }

.nav-links a { text-decoration: none; color: rgba(250,247,242,0.8); font-size: 1rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent-light); }

/* ── BUTTONS ── */
.btn {
  display: inline-block; text-decoration: none;
  padding: 0.9rem 2.2rem; border-radius: 60px;
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.02em;
  transition: all 0.25s ease; cursor: pointer; border: none;
}

.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(108,79,214,0.25); }
.btn-primary:hover { background: var(--accent-light); transform: translateY(-3px); box-shadow: 0 6px 14px rgba(108,79,214,0.3); }

/* ── PAGE HERO ── */
.page-hero { padding: 12rem 3rem 6rem; position: relative; border-bottom: 1px solid var(--border); }

.page-hero-inner { max-width: 860px; position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1.5rem;
}
.eyebrow::before { content: ''; display: block; width: 32px; height: 2px; background: var(--accent); }

.page-hero h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.page-hero p { font-size: 1.15rem; color: var(--muted); max-width: 580px; line-height: 1.8; }

/* ── SECTION COMMON ── */
.section-label {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── APP IDENTITY / FEATURES SECTION ── */
#about { padding: 6rem 3rem; background: var(--surface); border-bottom: 1px solid var(--border); }

.identity-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }

.identity-text p { color: var(--muted); font-size: 1.05rem; margin-bottom: 1.25rem; }
.identity-text p strong { color: var(--ink); font-weight: 600; }

.app-identity-hero { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1.8rem; }

.app-icon-display { width: 96px; height: 96px; border-radius: 22px; overflow: hidden; flex-shrink: 0; box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
.app-icon-display img { width: 100%; height: 100%; display: block; object-fit: cover; }

.app-name-block strong { display: block; font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700; color: var(--ink); margin-bottom: 0.2rem; }
.app-name-block span { font-size: 0.85rem; color: var(--muted); letter-spacing: 0.04em; }

.feature-list { list-style: none; margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.feature-list li { display: flex; gap: 1.25rem; align-items: flex-start; }
.feature-list .icon {
  width: 48px; height: 48px; background: var(--paper); border: 1px solid var(--border);
  border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0; color: var(--accent);
}
.feature-list .txt strong { display: block; font-size: 1rem; font-weight: 600; color: var(--ink); margin-bottom: 0.3rem; }
.feature-list .txt span { font-size: 0.9rem; color: var(--muted); }

/* ── STATS / SIDE CARD ── */
.stats-card { background: var(--ink); border-radius: 32px; padding: 2.8rem; color: #fff; }
.stats-card .big-num { font-family: var(--font-serif); font-size: 2rem; font-weight: 800; display: block; margin-bottom: 0.3rem; }
.stats-card > p { color: rgba(250,247,242,0.65); margin-bottom: 1.75rem; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat-box { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); border-radius: 18px; padding: 1.1rem 1.3rem; }
.stat-box strong { display: block; font-family: var(--font-serif); font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: 0.2rem; }
.stat-box span { font-size: 0.78rem; color: rgba(250,247,242,0.55); }

/* ── MADE BY FILLORIN ── */
#made-by { padding: 6rem 3rem; background: var(--surface); border-bottom: 1px solid var(--border); }
.made-by-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.made-by-logo-block p { color: var(--muted); }
.tech-list { list-style: none; display: flex; flex-direction: column; gap: 0.9rem; }
.tech-list li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.95rem; color: var(--muted); }
.tech-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* ── SUPPORT ── */
#support { padding: 5rem 3rem; text-align: center; background: var(--paper); }

/* ── FOOTER ── */
footer {
  background: var(--ink); border-top: 1px solid rgba(255,255,255,0.08);
  padding: 2rem 3rem; display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  font-size: 0.88rem; color: rgba(250,247,242,0.5);
}
footer a { color: rgba(250,247,242,0.6); text-decoration: none; font-weight: 500; transition: color 0.2s; }
footer a:hover { color: var(--accent-light); }

/* ── PRIVACY POLICY PAGE ── */
.policy-wrap { padding: 10rem 3rem 6rem; display: flex; justify-content: center; }
.policy-container { max-width: 760px; width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 32px; padding: 3.5rem; }

.policy-header { margin-bottom: 2rem; }
.policy-brand { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; }
.policy-container h1 { font-size: 2.6rem; font-weight: 800; margin-bottom: 0.5rem; }
.policy-date { font-size: 0.9rem; color: var(--muted); }

.policy-container h2 {
  font-size: 1.4rem; font-weight: 700; margin-top: 2.5rem; margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.75rem;
}

.policy-container p, .policy-container li { color: var(--ink); margin-bottom: 1rem; }
.policy-container ul { padding-left: 1.4rem; margin-bottom: 1rem; }
.policy-container a { color: var(--accent); }

.policy-notice {
  background: var(--paper); border: 1px solid var(--border); border-radius: 20px;
  padding: 1.5rem 1.75rem; margin: 1.5rem 0; font-size: 0.98rem;
}

.license-block { border: 1px solid var(--border); border-radius: 20px; padding: 1.5rem 1.75rem; margin-bottom: 1.25rem; }
.license-block-title { font-weight: 700; margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.license-block-badge {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--paper); border: 1px solid var(--border); border-radius: 60px; padding: 0.2rem 0.7rem; color: var(--accent);
}
.license-block p { font-size: 0.95rem; }

.policy-footer-note { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: 0.9rem; color: var(--muted); }
.policy-footer-note a { color: var(--accent); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
.anim { opacity: 0; animation: fadeUp 0.65s cubic-bezier(0.2,0.9,0.4,1.1) forwards; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 0 1.5rem; }
  .nav-links { gap: 1.2rem; }
  .page-hero { padding: 7rem 1.5rem 4rem; }
  #about, #made-by, #support { padding: 4rem 1.5rem; }
  .identity-grid, .made-by-inner { grid-template-columns: 1fr; gap: 3rem; }
  footer { flex-direction: column; text-align: center; }
  .policy-wrap { padding: 7rem 1.25rem 4rem; }
  .policy-container { padding: 2rem; border-radius: 20px; }
}
