/**
 * Community Policy Feature Page Styles
 * Matches LoveForm's /help/feature/1 design
 *
 * Measurements taken from LoveForm (Dec 2025):
 * - Title: 48px, weight 600
 * - Subtitle/headings: 22px
 * - Links: 16px, underlined
 * - Grid: 3-column, 24px gap, 64px row gap
 */

/* ============================================
   HERO SECTION
   ============================================ */

.feature-hero {
    display: flex;
    align-items: flex-start;
    gap: 48px;
    margin-bottom: 80px;
    padding-top: 48px;
}

.feature-hero-text {
    flex: 1;
    max-width: 500px;
}

.feature-hero-image {
    width: 400px;
    flex-shrink: 0;
}

.feature-hero-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
}

.feature-title {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.15;
    color: #222222;
    margin: 0 0 24px;
    letter-spacing: -0.5px;
}

.feature-subtitle {
    font-size: 22px;
    font-weight: 400;
    line-height: 26px;
    color: #222222;
    margin: 0;
}

/* ============================================
   POLICY GRID - 3 COLUMN LAYOUT
   ============================================ */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 24px;
    row-gap: 64px;
}

.feature-section {
    min-width: 0; /* Prevent overflow */
}

.feature-section h2 {
    font-size: 22px;
    font-weight: 500;
    line-height: 26px;
    color: #222222;
    margin: 0 0 16px;
}

.feature-section a {
    display: block;
    font-size: 16px;
    line-height: 24px;
    color: #222222;
    text-decoration: underline;
    margin-bottom: 8px;
    transition: color 0.15s ease;
}

.feature-section a:hover {
    color: #717171;
}

.feature-section a:last-child {
    margin-bottom: 0;
}

/* ============================================
   LEGAL CALLOUT BOX (Airbnb Style)
   - Compact single-line design
   - No background fill, just subtle border
   - Globe icon in brand teal color
   - ~50px total height, 22px margin below
   ============================================ */

.feature-legal {
    background: transparent;
    border: 1px solid #DDDDDD;
    border-radius: 8px;
    padding: 14px 20px;
    margin-top: 64px;
    margin-bottom: 42px; /* Space before footer */
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content; /* Border expands to fit content */
}

.feature-legal-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #008489; /* Buggy brand teal */
}

.feature-legal-text {
    font-size: 14px;
    line-height: 20px;
    color: #222222;
    margin: 0;
    white-space: nowrap;
}

.feature-legal-text strong {
    font-weight: 600;
}

.feature-legal-text a {
    color: #222222;
    text-decoration: underline;
}

.feature-legal-text a:hover {
    color: #717171;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablet: 2 columns */
@media (max-width: 992px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 48px;
    }

    .feature-hero {
        gap: 32px;
    }

    .feature-hero-image {
        width: 320px;
    }

    .feature-title {
        font-size: 40px;
    }
}

/* Mobile: 1 column, stacked hero */
@media (max-width: 768px) {
    .feature-hero {
        flex-direction: column;
        gap: 32px;
        margin-bottom: 48px;
        padding-top: 24px;
    }

    .feature-hero-text {
        max-width: 100%;
    }

    .feature-hero-image {
        width: 100%;
        order: -1; /* Image on top for mobile */
    }

    .feature-title {
        font-size: 32px;
    }

    .feature-subtitle {
        font-size: 18px;
        line-height: 24px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        row-gap: 40px;
    }

    .feature-legal {
        display: flex; /* Back to flex on mobile for full width */
        padding: 12px 16px;
        gap: 8px;
        margin-top: 48px;
        width: 100%;
    }

    .feature-legal-text {
        font-size: 13px;
        line-height: 18px;
        white-space: normal; /* Allow wrap on mobile */
    }
}

/* ============================================
   CONTENT PADDING ADJUSTMENT
   ============================================ */

/* Override hc-container if needed for wider content */
.feature-page .hc-container {
    max-width: 1080px;
}
