/* KoMakan Website - Peach Comfort theme from UI/UX Brief */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Peach Comfort light colours from UI_UX_BRIEF.md */
  --page-bg: #FCF5EC;
  --card-bg: #FFFFFF;
  --main-colour: #D96C4A;
  --soft-highlight: #EFA487;
  --text: #241812;
  --button-label: #241812;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background: var(--page-bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
header {
  background: var(--card-bg);
  padding: 20px 0;
  margin-bottom: 40px;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.logo {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

nav a {
  color: var(--text);
  text-decoration: underline;
  padding: 8px 12px;
}

nav a:hover {
  background: var(--soft-highlight);
}

/* Main content */
h1 {
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.3;
}

h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 30px 0 16px 0;
}

h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 24px 0 12px 0;
}

p {
  margin-bottom: 16px;
}

ul, ol {
  margin: 16px 0 16px 24px;
}

li {
  margin-bottom: 8px;
}

a {
  color: var(--text);
}

/* Cards and sections */
.card {
  background: var(--card-bg);
  padding: 24px;
  margin-bottom: 24px;
  border-radius: 8px;
}

.highlight-section {
  background: var(--soft-highlight);
  padding: 24px;
  margin: 32px 0;
  border-radius: 8px;
}

/* Buttons */
.button {
  display: inline-block;
  background: var(--main-colour);
  color: var(--button-label);
  padding: 14px 28px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  font-size: 16px;
  margin: 8px 8px 8px 0;
}

.button:hover {
  background: var(--soft-highlight);
}

.button-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0;
}

/* App store buttons */
.store-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px 0;
}

.store-button {
  background: var(--main-colour);
  color: var(--button-label);
  padding: 14px 28px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  display: inline-block;
  min-width: 200px;
  text-align: center;
}

.store-button:hover {
  background: var(--soft-highlight);
}

/* Footer */
footer {
  margin-top: 60px;
  padding: 40px 0 20px 0;
  background: var(--card-bg);
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text);
  text-decoration: underline;
}

.footer-copy {
  font-size: 14px;
  color: var(--text);
}

/* Privacy and Terms pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  margin-bottom: 12px;
}

.updated-date {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 32px;
}

.legal-content h2 {
  margin-top: 40px;
}

.legal-content ul,
.legal-content ol {
  margin: 16px 0 16px 32px;
}

.legal-content li {
  margin-bottom: 12px;
}

/* Contact boxes */
.contact-box {
  background: var(--soft-highlight);
  padding: 20px;
  margin: 24px 0;
  border-radius: 4px;
}

.contact-box strong {
  display: block;
  margin-bottom: 8px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    width: 100%;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 18px;
  }

  .button-group {
    flex-direction: column;
  }

  .button,
  .store-button {
    width: 100%;
    text-align: center;
  }

  footer .container {
    flex-direction: column;
  }
}
