/* FoundYa! — Privacy Policy Stylesheet
   Matches the in-game Theme.cs: "Lamplight on Parchment / Cream & Gold Paper"
   Palette:
     Paper:       #FBF7EE (Surface)
     PaperEdge:   #E8DEC8 (Background edge / borders)
     Ink:         #4A3520 (Primary body & headings)
     InkSoft:     #8A7358 (Muted & secondary text)
     Amber:       #E8B55C (Primary gold accent)
     AmberDeep:   #C08A2E (Deep gold for links & badges)
     Olive:       #7E8C4E (Muted warm green accent)
*/

:root {
  color-scheme: light;

  --bg: #F2EAD9;
  --bg-gradient: linear-gradient(180deg, #F5EFE2 0%, #ECE2CE 100%);
  --surface: #FCF8F0;
  --surface-alt: #F3EBD9;
  --rule: #E2D5BE;
  --rule-strong: #D4C3A6;
  --ink: #4A3520;
  --ink-soft: #846F55;
  --ink-faint: #A39077;
  --amber: #E8B55C;
  --amber-deep: #B57D22;
  --amber-glow: rgba(232, 181, 92, 0.25);
  --header-bg: linear-gradient(135deg, #442E18 0%, #2F1E0E 100%);
  --header-text: #FBF6EB;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 2.5rem 1.25rem 4rem;
  background: var(--bg-gradient);
  color: var(--ink);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
}

main {
  max-width: 48rem;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 2.2rem 2.2rem 2.8rem;
  box-shadow:
    0 1px 3px rgba(74, 53, 32, 0.04),
    0 8px 24px rgba(74, 53, 32, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

/* Header Banner with Icon */
.app-header {
  background: var(--header-bg);
  color: var(--header-text);
  border-radius: 14px;
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.75rem;
  border-bottom: 3px solid var(--amber);
  box-shadow: 0 4px 14px rgba(47, 30, 14, 0.25);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2.5px solid var(--amber);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
  object-fit: cover;
  background: #2F1E0E;
}

.app-header-text {
  flex: 1;
}

.app-title {
  margin: 0;
  font-family: "Baskerville", "Hoefler Text", "Palatino", "Georgia", "PT Serif", "Charter", "Noto Serif", serif;
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: #FFF9EE;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.app-subtitle {
  margin: 0.35rem 0 0;
  font-size: 1rem;
  color: #E6D2B5;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Metadata Box */
.meta {
  background: var(--surface-alt);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--amber-deep);
  border-radius: 10px;
  padding: 0.95rem 1.25rem;
  margin-bottom: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  font-size: 0.92rem;
  color: var(--ink);
}

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

.lede {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--ink);
  margin: 1.25rem 0 1.75rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--rule);
}

/* Headings */
h1, h2, h3 {
  font-family: "Baskerville", "Hoefler Text", "Palatino", "Georgia", "PT Serif", "Charter", "Noto Serif", serif;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.35rem;
  margin: 2.2rem 0 0.75rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

h2::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--amber-deep);
  border-radius: 50%;
}

h3 {
  font-size: 1.08rem;
  margin: 1.5rem 0 0.5rem;
  color: #5C4127;
}

p, li {
  overflow-wrap: break-word;
  color: var(--ink);
}

ul {
  padding-left: 1.35rem;
}

li {
  margin: 0.4rem 0;
}

li::marker {
  color: var(--amber-deep);
}

/* Links */
a {
  color: var(--amber-deep);
  text-decoration: underline;
  text-decoration-color: rgba(181, 125, 34, 0.45);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover {
  color: #8C5B0F;
  text-decoration-color: #8C5B0F;
}

/* Highlight boxes */
.highlight-box {
  background: rgba(232, 181, 92, 0.12);
  border: 1px solid rgba(192, 138, 46, 0.3);
  border-radius: 10px;
  padding: 0.9rem 1.2rem;
  margin: 1rem 0;
}

/* Footer / Back link */
footer {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--surface-alt);
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 1px 3px rgba(74, 53, 32, 0.06);
  transition: all 0.15s ease;
}

.back-btn:hover {
  background: var(--rule);
  border-color: var(--amber-deep);
  color: #2F1E0E;
  transform: translateY(-1px);
}

.footer-copy {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

@media (max-width: 600px) {
  body {
    padding: 1rem 0.75rem 2.5rem;
  }

  main {
    padding: 1.4rem 1.25rem 2rem;
    border-radius: 16px;
  }

  .app-header {
    flex-direction: column;
    text-align: center;
    padding: 1.2rem 1rem;
  }

  .app-icon {
    width: 64px;
    height: 64px;
  }

  .app-title {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  footer {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .back-btn {
    justify-content: center;
  }
}
