/* Shared styles for Privacy / Terms pages */

@import url("fonts.css");

:root {
  --espresso: #2e1f16;
  --mocha: #5d4037;
  --steam: #637484;
  --cream: #f7f1ea;
  --foam: #f3ebe3;
  --font: "Metropolis", system-ui, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--espresso);
  background: linear-gradient(180deg, var(--cream), var(--foam));
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(93, 64, 55, 0.1);
  background: rgba(247, 241, 234, 0.92);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
  transition: box-shadow 0.25s ease;
}

.topbar.is-scrolled {
  box-shadow: 0 8px 24px rgba(46, 31, 22, 0.06);
}

.topbar a {
  color: var(--mocha);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

.topbar a:hover {
  color: var(--espresso);
}

.topbar .back-link:hover {
  transform: translateX(-2px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font);
  font-weight: 700;
  min-width: 0;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.brand:hover img {
  transform: scale(1.06) rotate(-3deg);
}

.topbar .back-link {
  white-space: nowrap;
  font-size: 0.92rem;
}

main {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2rem) clamp(1rem, 4vw, 1.25rem) 4rem;
  animation: legal-in 0.55s ease both;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@keyframes legal-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

h1 {
  color: var(--mocha);
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(1.55rem, 6vw, 2.4rem);
  border-bottom: 2px solid rgba(93, 64, 55, 0.12);
  padding-bottom: 10px;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

@media (max-width: 480px) {
  .topbar {
    padding: 0.85rem 1rem;
    gap: 0.65rem;
  }

  .topbar .back-link {
    font-size: 0.85rem;
  }

  .brand {
    font-size: 0.95rem;
  }
}

h2 {
  color: var(--mocha);
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.25rem;
  margin-top: 2rem;
  border-bottom: 1px solid rgba(93, 64, 55, 0.1);
  padding-bottom: 5px;
}

h3 {
  color: #3d4852;
  font-weight: 600;
  margin-top: 1.25rem;
}

.meta-info {
  background-color: rgba(255, 255, 255, 0.65);
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid rgba(93, 64, 55, 0.08);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.meta-info:hover {
  box-shadow: 0 10px 28px rgba(46, 31, 22, 0.06);
  transform: translateY(-1px);
}

.meta-info p {
  margin: 5px 0;
}

.last-updated,
.updated {
  color: var(--steam);
  font-style: italic;
  margin-bottom: 1.5rem;
}

ul {
  padding-left: 20px;
}

li {
  margin-bottom: 8px;
}

p,
li {
  color: #3d4852;
}

a {
  color: var(--mocha);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--espresso);
}

@media (prefers-reduced-motion: reduce) {
  main {
    animation: none;
  }

  .brand:hover img,
  .meta-info:hover,
  .topbar .back-link:hover {
    transform: none;
  }
}
