/* ============================================================
   MangaPulse — pages.css
   Styles for auxiliary pages: About, Privacy, Terms, Cookie
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

/* ============================================================
   CSS RESET
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ============================================================
   CUSTOM PROPERTIES
   ============================================================ */
:root {
  --bg:          #0A0A0F;
  --surface:     #13131A;
  --surface2:    #1C1C26;
  --surface3:    #252532;
  --primary:     #E53935;
  --primary-dk:  #B71C1C;
  --accent:      #FFD60A;
  --text:        #EEEEF2;
  --text-muted:  #9898A8;
  --border:      #252532;
  --white:       #FFFFFF;

  --font-head: 'Rajdhani', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius:      4px;
  --radius-lg:   8px;
  --container:   1200px;
}

/* ============================================================
   BASE
   ============================================================ */
html {
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}

p {
  color: var(--text-muted);
  line-height: 1.75;
}

a {
  color: var(--primary);
  text-decoration: none;
}

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

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

address {
  font-style: normal;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   SITE HEADER (same as main)
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  height: 68px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  display: block;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ============================================================
   PAGE HERO
   ============================================================ */
.page-hero {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 64px 0;
  background-image:
    linear-gradient(rgba(229,57,53,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229,57,53,0.03) 1px, transparent 1px);
  background-size: 72px 72px;
}

.page-breadcrumb {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-breadcrumb a {
  color: var(--primary);
}

.page-breadcrumb span {
  color: var(--surface3);
}

.page-title {
  font-family: var(--font-head);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}

.page-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
}

/* ============================================================
   PAGE MAIN CONTENT
   ============================================================ */
.page-main {
  padding: 80px 0;
}

/* ============================================================
   ABOUT — STORY BLOCK
   ============================================================ */
.about-block {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.about-block:last-child {
  border-bottom: none;
}

.about-inner {
  display: flex;
  gap: 72px;
  align-items: center;
}

.about-inner.reverse {
  flex-direction: row-reverse;
}

.about-image {
  flex: 0 0 400px;
}

.about-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background-color: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 12px;
  font-family: var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.about-placeholder svg {
  opacity: 0.4;
}

.about-text {
  flex: 1 1 0;
  min-width: 0;
}

.about-text.left {
  text-align: left !important;
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}

.about-text p {
  margin-bottom: 16px;
  font-size: 15px;
  color: var(--text-muted);
}

/* ============================================================
   ABOUT — MISSION BLOCK
   ============================================================ */
.mission-section {
  padding: 80px 0;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
}

.mission-section .section-label {
  display: block;
}

.mission-section .section-title {
  text-align: left;
  margin-bottom: 40px;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.mission-card {
  background-color: var(--surface2);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: left;
}

.mission-icon {
  color: var(--primary);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: rgba(229,57,53,0.1);
  border-radius: 50%;
}

.mission-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.mission-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   POLICY PAGES — EMPTY BLOCK
   ============================================================ */
.policy-block {
  padding: 80px 0;
  min-height: 40vh;
  display: flex;
  align-items: flex-start;
}

.policy-placeholder {
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 64px;
  text-align: center;
  width: 100%;
  color: var(--text-muted);
}

.policy-placeholder p {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ============================================================
   FOOTER (shared)
   ============================================================ */
.site-footer {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.footer-brand .brand-link {
  margin-bottom: 0;
  display: inline-flex;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 360px;
  margin-top: 12px;
}

.footer-nav-title {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links li a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links li a:hover {
  color: var(--text);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact-list li {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-contact-list li a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-contact-list li a:hover {
  color: var(--text);
}

.footer-bottom {
  padding: 20px 0;
}

.copyright {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.04em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .about-inner {
    flex-direction: column;
    gap: 40px;
  }

  .about-inner.reverse {
    flex-direction: column;
  }

  .about-image {
    flex: none;
    width: 100%;
  }

  .mission-grid {
    grid-template-columns: 1fr 1fr;
  }

  .mission-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 50%;
    justify-self: center;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ============================================================
   POLICY PAGES — MAIN CONTENT
   ============================================================ */
.policy-main {
  padding: 80px 0;
  background-color: var(--bg);
}

.policy-main h2 {
  font-size: clamp(18px, 2vw, 24px);
  color: var(--text);
  margin-top: 32px;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

.policy-main h2:first-child {
  margin-top: 0;
}

.policy-main p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.policy-main ul {
  list-style: disc;
  margin-left: 24px;
  margin-bottom: 16px;
}

.policy-main ul li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 8px;
}

.policy-main strong {
  color: var(--text);
  font-weight: 600;
}

.policy-main a {
  color: var(--primary);
  text-decoration: underline;
}

.policy-main a:hover {
  color: var(--text);
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--surface2);
  border-top: 1px solid var(--border);
  padding: 24px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  color: var(--text-muted);
  max-height: 140px;
  overflow-y: auto;
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner-text {
  flex: 1;
  min-width: 0;
}

.cookie-banner-text a {
  color: var(--primary);
  text-decoration: underline;
}

.cookie-banner-text a:hover {
  color: var(--text);
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-banner-actions button {
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--font-head);
}

.cookie-accept {
  background-color: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
}

.cookie-accept:hover {
  background-color: #B71C1C;
  border-color: #B71C1C;
}

.cookie-customize {
  background-color: var(--surface3);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.cookie-customize:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

/* ============================================================
   COOKIE CUSTOMIZE MODAL
   ============================================================ */
.cookie-customize-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-modal-content {
  background-color: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.cookie-modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  letter-spacing: 0.01em;
}

.cookie-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-modal-close:hover {
  color: var(--text);
}

.cookie-modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cookie-option {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cookie-checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.cookie-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary);
}

.cookie-checkbox-label input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.cookie-option-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

.cookie-option-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  margin-left: 30px;
  line-height: 1.5;
}

.cookie-modal-footer {
  display: flex;
  gap: 12px;
  padding: 24px;
  border-top: 1px solid var(--border);
  justify-content: flex-end;
}

.cookie-modal-btn-cancel,
.cookie-modal-btn-save {
  padding: 10px 24px;
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--font-head);
}

.cookie-modal-btn-cancel {
  background-color: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.cookie-modal-btn-cancel:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.cookie-modal-btn-save {
  background-color: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
}

.cookie-modal-btn-save:hover {
  background-color: #B71C1C;
  border-color: #B71C1C;
}

.cookie-decline {
  background-color: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.cookie-decline:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

/* ============================================================
   RESPONSIVE — POLICY PAGES
   ============================================================ */
@media (max-width: 768px) {
  .policy-main {
    padding: 48px 0;
  }

  .policy-main h2 {
    margin-top: 24px;
    font-size: 18px;
  }

  .policy-main p,
  .policy-main ul li {
    font-size: 14px;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
  }

  .cookie-banner-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .cookie-accept,
  .cookie-decline {
    flex: 1;
    min-width: 120px;
  }
}
