/*
 * The public policy pages (#82): privacy.html and account-deletion.html. Static, no JS,
 * served outside the app, so they can't use its bundled fonts or Tailwind: the "Buku Besar"
 * palette (src/index.css) is copied here as plain tokens, light and dark.
 */
:root {
  color-scheme: light dark;
  --background: #f7f5f0;
  --foreground: #1d2430;
  --card: #fffefb;
  --primary: #1f5f4a;
  --primary-foreground: #ffffff;
  --muted-foreground: #6b6e76;
  --border: #e3dfd5;
  --accent: #e2a54a;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, ui-serif, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #14171c;
    --foreground: #ece8df;
    --card: #1b1f25;
    --primary: #4fae8c;
    --primary-foreground: #0d1a15;
    --muted-foreground: #9a9ea6;
    --border: #2a2f37;
  }
}

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

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

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

a {
  color: var(--primary);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 1;
  padding: 0.5rem 0.75rem;
  background: var(--card);
}

/* The masthead: a green ledger page, ruled like an account book (the sign-in page's aside). */
.masthead {
  position: relative;
  overflow: hidden;
  background: var(--primary);
  color: var(--primary-foreground);
}

.masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2.5rem,
    currentColor 2.5rem,
    currentColor calc(2.5rem + 1px)
  );
  opacity: 0.08;
  pointer-events: none;
}

.masthead-inner,
main,
.page-footer {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.masthead-inner {
  position: relative;
  padding-top: 1.25rem;
  padding-bottom: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 600;
}

.brand img {
  width: 2rem;
  height: 2rem;
  border-radius: 0.45rem;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.35);
}

.masthead h1 {
  margin: 1.75rem 0 0.5rem;
  font-family: var(--serif);
  font-size: clamp(1.875rem, 6vw, 2.5rem);
  font-weight: 500;
  line-height: 1.15;
}

.masthead p {
  margin: 0;
}

.masthead a {
  color: inherit;
}

.meta {
  font-size: 0.9375rem;
  opacity: 0.88;
}

.jump {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
}

main {
  padding-top: 0.5rem;
  padding-bottom: 2rem;
}

/* One language: Indonesian first, then English. */
.lang {
  padding-top: 1.5rem;
}

.lang + .lang {
  margin-top: 2rem;
  border-top: 3px double var(--border);
}

.lang-label {
  margin: 0 0 0.25rem;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lang > h2 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.2;
}

h3 {
  margin: 2rem 0 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

p,
ul,
ol {
  margin: 0 0 0.875rem;
}

ul,
ol {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.375rem;
}

strong {
  font-weight: 650;
}

/* A short summary at the top of each language. */
.card {
  margin: 0 0 1rem;
  padding: 1rem 1rem 0.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 0.375rem;
}

.steps li::marker {
  color: var(--primary);
  font-weight: 700;
}

.path {
  font-weight: 600;
  white-space: normal;
}

.muted {
  color: var(--muted-foreground);
}

.page-footer {
  padding-top: 1.25rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

.page-footer p {
  margin: 0 0 0.375rem;
}
