/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #faf7f2;
  --bg-card: #ffffff;
  --text: #2c1810;
  --text-muted: #7a6455;
  --accent: #c0601a;
  --accent-hover: #a04e12;
  --accent-light: rgba(192, 96, 26, 0.08);
  --border: #e8ddd0;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ===== HEADER / NAV ===== */
header {
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: lowercase;
}

.logo:hover {
  color: var(--accent);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent);
  text-decoration: none;
}

.nav-links .nav-app {
  font-weight: 700;
  color: var(--text);
  letter-spacing: 1px;
}

.nav-links .nav-app:hover {
  color: var(--accent);
}

/* ===== MAIN CONTENT ===== */
main {
  flex: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
}

/* ===== HERO (index) ===== */
.hero {
  text-align: center;
  padding: 5rem 1rem 2rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--text);
  margin-bottom: 0.5rem;
  text-transform: lowercase;
}

.hero .subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 3.5rem;
  font-weight: 400;
}

/* ===== APP CARD ===== */
.app-section {
  margin-top: 1rem;
}

.app-section h2 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  text-align: center;
}

.app-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  max-width: 560px;
  margin: 0 auto;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.app-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(192, 96, 26, 0.08);
}

.app-card-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.app-icon {
  width: 68px;
  height: 68px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1rem;
}

.app-card-header h3 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.app-card-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.app-card-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.app-card-links a {
  display: block;
  text-align: center;
  padding: 0.65rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text);
  background-color: transparent;
  transition: all 0.2s ease;
}

.app-card-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background-color: var(--accent-light);
  text-decoration: none;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  text-align: center;
  margin-top: 3.5rem;
  padding: 2rem 0;
}

.contact-section p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-section a {
  font-weight: 600;
}

/* ===== LEGAL PAGES ===== */
.legal {
  padding-bottom: 3rem;
}

.legal .breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.legal .breadcrumb a {
  color: var(--text-muted);
}

.legal .breadcrumb a:hover {
  color: var(--accent);
}

.legal .app-badge {
  display: inline-block;
  background-color: var(--accent-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.legal h1 {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.legal .updated {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.legal h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.legal h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.legal p {
  margin-bottom: 0.75rem;
}

.legal ul {
  margin: 0.5rem 0 1rem 1.5rem;
}

.legal ul li {
  margin-bottom: 0.35rem;
}

.legal .info-block {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  line-height: 1.9;
}

.legal .info-block strong {
  color: var(--text);
}

.legal .warning {
  background-color: #fff6e9;
  border-left: 4px solid #f59e0b;
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
  font-weight: 500;
  color: var(--text);
}

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  background-color: var(--white);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .hero {
    padding: 3rem 0.5rem 1.5rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero .subtitle {
    font-size: 1rem;
  }

  .app-card {
    padding: 2rem 1.25rem;
  }

  .app-card-header h3 {
    font-size: 1.3rem;
  }

  .legal h1 {
    font-size: 1.4rem;
  }

  .legal h2 {
    font-size: 1.05rem;
  }

  nav {
    flex-direction: column;
    gap: 0.75rem;
  }

  .nav-links {
    gap: 1rem;
  }
}
