/* Shared privacy page styles — matches Quiet Cards aesthetic of index.html */

:root {
  --bg:      #F4F1EC;
  --card:    #FFFFFF;
  --ink:     #0E0E0E;
  --mute:    #73706B;
  --faint:   #A8A39A;
  --line:    #E5E0D5;
  --line-2:  #EFEAE0;
  --shadow:  0 1px 2px rgba(20,16,8,0.04), 0 8px 24px rgba(20,16,8,0.04);
  --green:   #3a8a4f;
  --font-jp: "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --radius:  16px;
  --radius-lg: 20px;
  --container: 760px;
  --pad: 48px;
  --accent: #0E0E0E; /* overridden per page */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { min-height: 100%; }
body {
  font-family: var(--font-jp);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "palt";
  letter-spacing: 0.02em;
  line-height: 1.6;
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 4px; }
a { color: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px var(--pad);
  max-width: 1080px; margin: 0 auto;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.06em;
  text-decoration: none; color: var(--ink);
}
.nav__back {
  background: transparent; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--ink); padding: 0;
  text-decoration: none;
}
.nav__back svg { transition: transform 0.3s; }
.nav__back:hover svg { transform: translateX(-3px); }
.nav { display: flex; gap: 28px; font-size: 13px; font-weight: 600; color: var(--mute); }
.nav a { text-decoration: none; transition: color 0.2s; }
.nav a:hover { color: var(--ink); }

/* ── Page intro / hero card ── */
.page {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px var(--pad) 80px;
}
.page-intro {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 8px;
  margin-bottom: 32px;
}
.page-intro__label {
  font-size: 11px; letter-spacing: 0.18em;
  color: var(--faint); font-weight: 700;
}
.page-intro__title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700; line-height: 1.3; letter-spacing: 0.01em;
  margin: 4px 0 0;
}
.page-intro__lead {
  font-size: 15px; color: var(--mute); font-weight: 500;
  line-height: 1.95; text-wrap: pretty;
  margin-top: 8px;
}

/* Hero card for app-specific privacy pages */
.privacy-hero {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px 36px;
  display: grid; grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
}
.privacy-hero__icon {
  width: 80px; height: 80px; border-radius: 18px;
  object-fit: cover; display: block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.privacy-hero__label {
  font-size: 11px; letter-spacing: 0.18em;
  color: var(--faint); font-weight: 700;
  margin-bottom: 6px;
}
.privacy-hero__title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700; line-height: 1.3; letter-spacing: 0.01em;
  margin: 0 0 4px;
}
.privacy-hero__name-en {
  font-size: 12px; color: var(--faint); font-weight: 500;
  letter-spacing: 0.08em;
}

/* Index of privacy pages */
.privacy-list {
  display: flex; flex-direction: column; gap: 12px;
}
.privacy-list__item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  text-decoration: none; color: inherit;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s, border-color 0.3s;
}
.privacy-list__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(20,16,8,0.05), 0 16px 36px rgba(20,16,8,0.08);
  border-color: color-mix(in srgb, var(--ink) 8%, var(--line));
}
.privacy-list__item:hover .privacy-list__arrow { transform: translateX(4px); }
.privacy-list__left { display: flex; align-items: center; gap: 16px; min-width: 0; }
.privacy-list__icon { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.privacy-list__name { display: block; font-size: 16px; font-weight: 700; letter-spacing: 0.02em; line-height: 1.3; margin-bottom: 4px; }
.privacy-list__sub { display: block; font-size: 12px; color: var(--mute); font-weight: 500; }
.privacy-list__arrow { color: var(--faint); transition: transform 0.3s, color 0.3s; flex-shrink: 0; }
.privacy-list__item:hover .privacy-list__arrow { color: var(--ink); }

/* ── Panel (the white card holding the policy body) ── */
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 40px 48px;
}
.panel .updated {
  font-size: 12px; color: var(--faint); font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-2);
}

/* ── Headings inside panel ── */
.panel h2 {
  font-size: 17px; font-weight: 700;
  margin-top: 36px; margin-bottom: 14px;
  color: var(--ink);
  letter-spacing: 0.04em;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
  line-height: 1.5;
}
.panel h2:first-of-type { margin-top: 0; }
.panel h3 {
  font-size: 13px; font-weight: 700;
  margin-top: 22px; margin-bottom: 10px;
  color: var(--ink);
  letter-spacing: 0.04em;
}
.panel .intro {
  font-size: 15px; color: var(--mute); line-height: 2.0; font-weight: 500;
  margin-bottom: 28px; text-wrap: pretty;
}
.panel p {
  font-size: 14px; color: var(--mute);
  line-height: 1.95; font-weight: 500;
  text-wrap: pretty;
  margin-bottom: 10px;
}
.panel ul {
  padding-left: 22px;
  margin: 6px 0 12px;
}
.panel ul li {
  font-size: 14px; color: var(--mute);
  line-height: 1.95; font-weight: 500;
  margin-bottom: 4px;
}
.panel ul li::marker { color: var(--faint); }
.panel strong { color: var(--ink); font-weight: 700; }
.panel a.text-link {
  color: var(--ink); font-weight: 600;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  word-break: break-all;
  transition: border-color 0.2s;
}
.panel a.text-link:hover { border-bottom-color: var(--ink); }
.panel code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--bg);
  padding: 1px 6px;
  border-radius: 4px;
}

/* ── Info table ── */
.info-table {
  width: 100%; border-collapse: collapse;
  margin: 12px 0 16px;
  font-size: 13px;
  background: var(--bg);
  border-radius: 10px;
  overflow: hidden;
}
.info-table th, .info-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: none; }
.info-table th {
  background: transparent;
  font-weight: 700; color: var(--ink);
  width: 40%;
  letter-spacing: 0.02em;
}
.info-table td { color: var(--mute); font-weight: 500; }

/* ── Note callouts ── */
.note, .no-collect, .no-ads, .alert {
  background: var(--bg);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  padding: 14px 18px;
  margin: 14px 0;
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.85;
}
.no-collect { border-left-color: var(--green); }
.no-ads, .alert { border-left-color: var(--ink); }

/* ── Copyright (small footer inside panel for some apps) ── */
.panel .copyright {
  text-align: center;
  color: var(--faint);
  font-size: 12px;
  font-weight: 500;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line-2);
}

/* ── Site footer ── */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--card);
  padding: 48px var(--pad) 56px;
}
.site-footer__inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 24px;
}
.site-footer__brand-name { font-size: 14px; font-weight: 700; letter-spacing: 0.04em; margin-bottom: 4px; }
.site-footer__copy { font-size: 12px; color: var(--mute); font-weight: 500; }
.site-footer__nav { display: flex; gap: 24px; font-size: 13px; color: var(--mute); font-weight: 600; }
.site-footer__nav a { text-decoration: none; transition: color 0.2s; }
.site-footer__nav a:hover { color: var(--ink); }

/* ── Reveal animation ── */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.reveal.shown { opacity: 1; transform: translateY(0); }

/* ── Focus ── */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (max-width: 760px) {
  :root { --pad: 24px; }
  .panel { padding: 28px 24px; }
  .privacy-hero { grid-template-columns: 1fr; padding: 24px; text-align: left; }
  .privacy-hero__icon { width: 64px; height: 64px; border-radius: 14px; }
  .info-table { font-size: 12px; }
  .info-table th, .info-table td { padding: 10px 12px; }
  .site-footer { padding: 40px 24px 48px; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .page { padding: 32px 24px 56px; }
}
