/* KIRIBAKO Privacy Policy - Shared styles */

:root {
  --text: #2b2118;
  --text-muted: #6b5e51;
  --bg: #faf6f0;
  --surface: #ffffff;
  --border: #d9cfc1;
  --accent: #4c3c26;
  --link: #6b4f1f;
  --max-width: 760px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}

.home-link {
  color: var(--link);
  text-decoration: none;
  font-weight: 500;
}

.home-link:hover { text-decoration: underline; }

.lang-switch a {
  color: var(--link);
  text-decoration: none;
  margin: 0 6px;
}

.lang-switch a:hover { text-decoration: underline; }

h1 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 12px;
}

h2 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--accent);
}

h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
}

p { margin: 12px 0; }

ul, ol {
  margin: 12px 0;
  padding-left: 24px;
}

li { margin: 4px 0; }

strong { font-weight: 600; }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

.meta {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 24px;
}

.meta strong { color: var(--text); }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

th, td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  background: #f3ebde;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
}

tr:last-child td { border-bottom: none; }

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .container { padding: 24px 16px 48px; }
  h1 { font-size: 24px; }
  h2 { font-size: 18px; }
  table { font-size: 14px; }
  th, td { padding: 8px 10px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #ede2d3;
    --text-muted: #a99988;
    --bg: #1a1410;
    --surface: #251c14;
    --border: #3d2f22;
    --accent: #d9b87a;
    --link: #d9b87a;
  }
  th { background: #2e2419; }
}
