/* ============================================================
   CSS Declarations - Legal Pages Theme (Light Mode & Jade)
   ============================================================ */
:root {
    --bg-base: #faf9f6;         /* Soft alabaster white background */
    --bg-surface: #ffffff;      /* Pure white for cards */
    --color-jade: #0b3024;      /* Deep Chinese Jade Green */
    --color-jade-mid: #124a3a;
    --color-jade-light: #1b6e56;
    --color-jade-soft: #eef6f3; /* Light jade green */
    --color-cinnabar: #b83a2e;  /* Cinnabar Red */
    --color-cinnabar-hover: #cf4b3e;
    --color-gold: #cda84b;      /* Imperial Gold */
    --color-gold-hover: #e0bd63;
    
    --text-primary: #182420;    /* Deep jade-black for contrast */
    --text-secondary: #4d605a;  /* Muted jade-gray */
    --text-light: #f4f9f7;
    
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Montserrat', Arial, sans-serif;
    --font-body: 'Lora', Georgia, serif;
    
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    
    --shadow-sm: 0 2px 8px rgba(11, 48, 36, 0.04);
    --shadow-md: 0 8px 20px rgba(11, 48, 36, 0.05);
    --shadow-lg: 0 15px 35px rgba(11, 48, 36, 0.06);
    --border-gold: 1px solid rgba(205, 168, 75, 0.2);
    --ease-quiet: cubic-bezier(0.25, 1, 0.5, 1);
    --hairline: 1px solid rgba(11, 48, 36, 0.08);
}

/* --- Global Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-base);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
    background: #e0deda;
    border-radius: 4px;
    border: 2px solid var(--bg-base);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-jade-light);
}

/* Typography Helpers */
h1, h2, h3, h4, h5 {
    font-family: var(--font-serif);
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* --- HEADER / NAVBAR --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.4rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(170, 205, 193, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--hairline);
}
.nav-logo {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none;
}
.nav-logo img {
  height: 42px; width: auto;
  object-fit: contain;
}
.nav-logo .en {
  font-family: 'EB Garamond', serif;
  font-size: 12px; font-style: italic;
  opacity: 0.55; letter-spacing: 0.05em;
  color: var(--text-primary);
}
.nav-links { display: flex; gap: 2.2rem; }
.nav-links a {
  font-family: 'Fira Code', monospace;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-primary);
  opacity: 0.65;
  transition: opacity 400ms var(--ease-quiet);
  position: relative;
  text-decoration: none;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: var(--color-jade);
  transition: width 500ms var(--ease-quiet);
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  font-family: 'Fira Code', monospace;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--color-jade);
  color: var(--color-jade);
  transition: all 400ms var(--ease-quiet);
  text-decoration: none;
}
.nav-cta:hover { background: var(--color-jade); color: var(--bg-surface); }

/* --- FOOTER / CONTACT SECTION --- */
.footer-section {
    background-color: var(--color-jade-soft);
    color: var(--text-primary);
    width: 100%;
    padding: 70px 40px;
    border-top: 4px solid var(--color-cinnabar);
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
}

.footer-title {
    font-size: 24px;
    color: var(--color-jade);
    margin-bottom: 25px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    left: 0;
    bottom: 0;
    background-color: var(--color-cinnabar);
}

.footer-address {
    margin-bottom: 30px;
}

.address-label, .hours-label {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-jade);
}

.address-text {
    font-size: 16px;
    color: var(--text-primary);
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
}

.hours-table tr {
    border-bottom: 1px dashed rgba(11, 48, 36, 0.1);
}

.hours-table tr:last-child {
    border-bottom: none;
}

.hours-table td {
    padding: 12px 0;
    vertical-align: top;
    font-size: 15px;
}

.hours-table td:first-child {
    font-weight: 600;
    width: 200px;
    color: var(--text-primary);
}

.hours-table td:last-child {
    text-align: left;
    color: var(--text-secondary);
}

.contact-details {
    margin-bottom: 40px;
}

.contact-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-jade);
}

.contact-phone, .contact-email {
    font-size: 15.5px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.contact-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.contact-link:hover {
    color: var(--color-cinnabar);
}

.footer-legal {
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.8;
    margin-top: 60px;
}

/* --- LEGAL BAR --- */
.legal-bar {
    width: 100%;
    background-color: var(--color-jade);
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 16px 40px;
    font-family: var(--font-sans);
    font-size: 13px;
    letter-spacing: 0.8px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-bar-links {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 auto;
}

.legal-bar-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.legal-bar-link:hover, .legal-bar-link.active {
    color: var(--color-cinnabar-hover);
    font-weight: bold;
    text-decoration: underline;
}

.legal-bar-sep {
    opacity: 0.4;
}

/* --- DEDICATED LEGAL PAGES STYLES --- */
.legal-page-body {
    background-color: var(--bg-base);
    color: var(--text-primary);
}

.legal-page-container {
    max-width: 900px;
    margin: 120px auto 40px auto;
    padding: 0 20px;
}

.legal-card {
    background-color: var(--bg-surface);
    border: 1px solid rgba(11, 48, 36, 0.08);
    border-radius: 6px;
    padding: 45px;
    box-shadow: var(--shadow-md);
}

.legal-page-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    color: var(--color-jade);
    text-align: center;
    margin-bottom: 15px;
}

.legal-divider {
    width: 60px;
    height: 2px;
    background-color: var(--color-cinnabar);
    margin: 0 auto 35px auto;
}

.legal-section {
    margin-bottom: 30px;
    font-family: var(--font-body);
    font-size: 15.5px;
    line-height: 1.8;
}

.legal-section h2 {
    color: var(--color-jade);
    font-size: 20px;
    margin-bottom: 12px;
    font-family: var(--font-serif);
    border-bottom: 1px dashed rgba(11, 48, 36, 0.15);
    padding-bottom: 8px;
}

.legal-section h3 {
    color: var(--color-jade-mid);
    font-size: 16px;
    margin-top: 15px;
    margin-bottom: 8px;
}

.legal-section p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.legal-section ul {
    margin-left: 20px;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.legal-section li {
    margin-bottom: 6px;
}

.legal-company {
    font-weight: bold;
    font-size: 18px;
    color: var(--text-primary);
}

.legal-link {
    color: var(--color-jade-light);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.legal-link:hover {
    color: var(--color-cinnabar);
    text-decoration: underline;
}

.legal-btn-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.legal-back-btn {
    background-color: var(--color-jade);
    color: #fff;
    text-decoration: none;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 15px;
    padding: 12px 30px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(11, 48, 36, 0.1);
    transition: background-color var(--transition-medium), transform var(--transition-medium), box-shadow var(--transition-medium);
}

.legal-back-btn:hover {
    background-color: var(--color-jade-mid);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(11, 48, 36, 0.15);
}

/* ============================================================
   RESPONSIVE STYLING (MEDIA QUERIES)
   ============================================================ */

/* Tablet & Smaller Screens */
@media (max-width: 1024px) {
    .legal-page-container {
        margin: 100px auto 20px auto;
    }
}

/* Mobile & Small Screens */
@media (max-width: 768px) {
    .nav { padding: 1rem 1.5rem; }
    .nav-links { display: none; }
    
    .legal-page-container {
        padding: 0 10px;
    }
    
    .legal-card {
        padding: 25px;
    }
    
    .legal-page-title {
        font-size: 24px;
    }
    
    .footer-section {
        padding: 60px 20px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .hours-table td:first-child {
        width: 150px;
    }
    
    .footer-legal {
        margin-top: 40px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .logo-link {
        width: 48px;
        height: 48px;
    }
    
    .nav-menu ul {
        gap: 15px;
    }

    .legal-bar {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 16px 20px;
        gap: 12px;
    }
}
