@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@400;500&display=swap');

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

:root {
  --ink: #1a1a1a;
  --paper: #f5f0e8;
  --paper-light: #faf6ef;
  --amber: #d97706;
  --amber-dark: #b45309;
  --brown: #4a3728;
  --brown-light: #6b5344;
  --cream: #e8e0d0;
  --rule: #c4b8a4;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Layout ── */

.page-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Header ── */

header {
  padding: 4rem 0 2rem;
  text-align: center;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 3rem;
}

header h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brown);
  margin-bottom: 0.25rem;
}

header .tagline {
  font-size: 0.85rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--amber);
}

/* ── Intro ── */

.intro {
  max-width: 620px;
  margin: 0 auto 3.5rem;
  text-align: center;
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--brown-light);
}

.intro em {
  color: var(--brown);
  font-style: italic;
}

/* ── Divider ── */

.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0;
  color: var(--rule);
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.divider span {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brown-light);
}

/* ── App Cards ── */

.apps {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.app-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.app-card .icon {
  overflow: hidden;
  border-radius: 4px 0 0 4px;
  display: flex;
}

.app-card .icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-card .details {
  min-width: 0;
  padding: 2rem;
  border: 0.5px solid var(--rule);
  border-left: none;
  border-radius: 0 4px 4px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.app-card .app-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 0.15rem;
}

.app-card .app-subtitle {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--amber);
  margin-bottom: 0.75rem;
}

.app-card .app-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--brown-light);
}

.app-card .app-badge {
  display: inline-block;
  margin-top: 1rem;
}

.app-card .app-badge img {
  height: 40px;
}

/* ── Footer ── */

footer {
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
  text-align: center;
}

footer nav {
  margin-bottom: 0.75rem;
}

footer nav a {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brown-light);
  text-decoration: none;
  margin: 0 1rem;
  transition: color 0.2s ease;
}

footer nav a:hover {
  color: var(--amber);
}

footer .copyright {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.75rem;
  color: var(--rule);
  letter-spacing: 0.05em;
}

/* ── Legal Pages ── */

.legal {
  max-width: 680px;
  margin: 0 auto;
  padding-bottom: 3rem;
}

.legal h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 0.25rem;
}

.legal .effective-date {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--amber);
  margin-bottom: 2rem;
}

.legal h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--brown);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.legal p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--brown-light);
  margin-bottom: 1rem;
}

.legal ul {
  list-style: none;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.legal ul li {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--brown-light);
  margin-bottom: 0.25rem;
}

.legal ul li::before {
  content: '\2014';
  margin-right: 0.5rem;
  color: var(--rule);
}

.legal a {
  color: var(--amber-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--cream);
  transition: border-color 0.2s ease;
}

.legal a:hover {
  border-color: var(--amber);
}

/* ── Back link ── */

.back-link {
  display: inline-block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brown-light);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--amber);
}

.back-link::before {
  content: '\2190\00a0';
}

/* ── Responsive ── */

@media (max-width: 640px) {
  header {
    padding: 3rem 0 1.5rem;
  }

  header h1 {
    font-size: 2.2rem;
  }

  .intro {
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
  }

  .app-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.25rem;
  }

  .app-card .icon {
    max-width: 240px;
    margin: 0 auto;
  }

  .app-card .app-name {
    font-size: 1.3rem;
  }

  footer nav a {
    display: block;
    margin: 0.5rem 0;
  }
}
